Make Login & Registration In Laravel 9
Today I am going to explain how you can generate Authentication scaffolding in Laravel 9.
Laravel UI Installation.
After Installing Laravel 9 we need to install laravel/ui package in order to generate authentication in laravel 9.
To Install run the composer command
composer require laravel/ui
After Composer installation run artisan command to generate scaffolding.
// 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
After generating UI need to install npm dependencies.
npm run install && npm run dev
Next to Migrate the database
php artisan migrate
The Output will look like.
The Installation Tutorial is below in the video.
If you face any issue while installing, please comment your query.
Thank You for Reading
Reach Out To me.
Twitter
Instagram
TechToolIndia YouTube Channel
Top comments (2)
what if you want just the controllers and routes, not views?
Hey Tim,
You can always override the view generated by laravel/ui package, Since package comes up with Route, View & Controller.
I hope this make sense to you.
Thanks