Setup bootstrap in Laravel8

Step-1: Install Laravel UI

composer require laravel/ui

Step-2: Install bootstrap using the below command

php artisan ui bootstrap

Step-3: now install npm and run npm

npm install
npm run dev

Step-4. create blade template file named test.blade.php under resources->views directory or location. Then put the below code for testing purpose in this file.

Step-5: write the below code in web.php

Route::get('/test',function(){
return view('test');
});

Step-5: Output

Leave a Reply

Your email address will not be published. Required fields are marked *