DEV Community

Cover image for How to make login & registration in laravel 9
shani singh
shani singh

Posted on

How to make login & registration in laravel 9

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


Enter fullscreen mode Exit fullscreen mode

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


Enter fullscreen mode Exit fullscreen mode

After generating UI need to install npm dependencies.



npm run install && npm run dev


Enter fullscreen mode Exit fullscreen mode

Next to Migrate the database



php artisan migrate

Enter fullscreen mode Exit fullscreen mode




The Output will look like.

Laravel 9 Login Registration

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)

Collapse
 
timbogdanov profile image
Tim Bogdanov

what if you want just the controllers and routes, not views?

Collapse
 
shanisingh03 profile image
shani singh

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