DEV Community

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

Posted on

2 2

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

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

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

The best way to debug slow web pages cover image

The best way to debug slow web pages

Tools like Page Speed Insights and Google Lighthouse are great for providing advice for front end performance issues. But what these tools can’t do, is evaluate performance across your entire stack of distributed services and applications.

Watch video

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay