How to generate Laravel Login / Registration (Authentication)
Hello Everyone,
It’s been a while since my last post, This one will be brief and it’s directed to all the devs who are trying to speed up their development circle.
I will explain about adding auth scaffolding in Laravel.
we can add the laravel/ui
package has bootstrap and Vue UI Component and auth scaffolding.
To know more about this package you can visit
Github Laravel UI.
Step 1
Include the laravel/ui
package into the project,
composer require laravel/ui
Once the laravel/ui
package has been installed, you may install the frontend scaffolding using the ui
Artisan command:
// Generate basic scaffolding...
php artisan ui bootstrap
php artisan ui vue
php artisan ui react// Generate login / registration scaffolding...
php artisan ui bootstrap --auth
php artisan ui vue --auth
php artisan ui react --auth
Step 2
After including UI Components we now have to add CSS and JS Files, For that, we need to run the following commands.
npm install
npm run dev
Just like that, you have managed to add login and registration functions to your Laravel Application.
Thanks for reading the article! If you enjoyed it, please don’t forget to show your appreciation by clicking 👏 below!
Any questions or comments hit me up on
Mail: epmnzava@gmail.com
Twitter: https://twitter.com/epmnzava
Github: https://bit.ly/3L4IXaC
LinkedIn: https://bit.ly/3w5Oklq