How to add Bootstrap Auth Scaffolding Laravel 8 Code Examples

  • Step 1 – Install Laravel 8 App
  • Step 2 – Database Configuration
  • Step 3 – Install Laravel UI
  • Step 4 – Install Bootstrap Auth Scaffolding
  • Step 5 – Install Npm Packages
  • Step 6 – Run PHP artisan Migrate
  • Step 7 – Run Development Server

Step 1 – Install Laravel 8 App

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

Step 2 – Database Configuration

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=db name
DB_USERNAME=db user name
DB_PASSWORD=db password

Step 3 – Install Laravel UI

composer require laravel/ui

Step 4 – Install Bootstrap Auth Scaffolding

php artisan ui bootstrap --auth

Step 5 – Install Npm Packages

npm install

npm run dev

Step 6 – Run php artisan Migrate

php artisan migrate

Step 7 – Run Development Server

php artisan serve