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


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: 


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

© Copyright - 2018 - 2023 | All rights reserved at Funda of Web IT