Install Bootstrap on Laravel Project

Last modified: June 11, 2021

Create a new Laravel project called demo by using the below command.

composer create-project laravel/laravel demo7898

To install bootstrap in your Laravel project, execute the following Laravel UI composer package in Visual Studio Code built-in Terminal 

composer require laravel/ui

Once the above code is successfully install, then we are ready to bootstrap in our application. Below code install bootstrap with authentication 

php artisan ui bootstrap --auth

Once it is installed, now it is time to install npm and run dev command

npm install npm run dev