Laravel Custom Authentication Setup & Cache Clearing
Step 1: Install Laravel UI
First, install Laravel UI and set up authentication with Vue.js:
Step 2: Install Laravel Project
Now, create a new Laravel project by running:
Step 3: Setup Database Credentials
-
Create a new database (e.g.,
custom_auth
). -
Open the
.env
file in your project root and update the database credentials:
-
Run the migration command to generate tables in your database:
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
Clear Route Cache
Clear View Cache
Clear Config Cache
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.