Fix forgot passcode and change form Laravel 8

Fix forgot passcode and change form Laravel 8

Laravel Custom Authentication Setup & Cache Clearing

Step 1: Install Laravel UI

First, install Laravel UI and set up authentication with Vue.js:

composer require laravel/ui php artisan ui vue --auth

Step 2: Install Laravel Project

Now, create a new Laravel project by running:

composer create-project --prefer-dist laravel/laravel dashboard_version

Step 3: Setup Database Credentials

  1. Create a new database (e.g., custom_auth).

  2. Open the .env file in your project root and update the database credentials:

DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=your_database_name DB_USERNAME=root DB_PASSWORD=your_database_password
  1. Run the migration command to generate tables in your database:

php artisan migrate

Now, you have successfully set up a Laravel Custom Authentication System with features like Login, Register, and Forgot Password.

Clearing Cache in Laravel

Sometimes, changes in your Laravel application may not reflect immediately due to cached files. You can clear various caches using the following commands.

Clear Laravel Application Cache

php artisan cache:clear

Clear Route Cache

php artisan route:clear

Clear View Cache

php artisan view:clear

Clear Config Cache

php artisan config:clear

By running these commands, you ensure that Laravel serves fresh configurations, routes, and views without relying on outdated cache files.

Now, you are all set to work smoothly on your Laravel project! If you have any questions, feel free to leave a comment below.

Soeng Souy

Soeng Souy

Website that learns and reads, PHP, Framework Laravel, How to and download Admin template sample source code free.

Post a Comment

CAN FEEDBACK
close