Laravel 10 Bootstrap Auth Scaffolding Tutorial

By Ved Prakash N | Apr 06, 2023 | Laravel
Share : Whatsapp

https://www.fundaofwebit.com/post/laravel-10-bootstrap-auth-scaffolding-tutorial

Authentication in Laravel 10 using Scaffolding | Laravel 10 Bootstrap Auth Scaffolding Tutorial


Hi guys, we will be learning how to create authentication in laravel 10

To implement authentication in Laravel 10, you can follow these steps:

Step 1: Create a new Laravel project using the following command:

composer create-project --prefer-dist laravel/laravel project-name

Step 2: Run the following command to install Laravel's default authentication scaffolding:

composer require laravel/ui

Step 3: Generate the authentication views and routes using one of the following commands

i.e, you have to install the laravel UI package command for creating auth scaffolding using bootstrap 5. so let's run the bellow command

php artisan ui bootstrap

OR

php artisan ui bootstrap --auth

Step 4: Now let's run bellow command for install npm:

npm install
npm run dev

It will generate CSS and js min files& node modules.

Step 5: Run the migration to create the necessary tables in the database

php artisan migrate


Step 6: You are all done with the required steps, now run the application by thee following command:

php artisan serve

and go to web browser with url as: 

http://localhost:8000/


That's it! you are done with auth scaffolding in laravel 10