laravel bootstrap install code example
Example 1: laravel bootstrap ui
// Generate basic scaffolding...
php artisan ui bootstrap
php artisan ui vue
php artisan ui react
// Generate login / registration scaffolding...
php artisan ui bootstrap --auth
php artisan ui vue --auth
php artisan ui react --auth
Example 2: install bootstrap in laravel
composer require laravel/ui
php artisan ui bootstrap # to install the auth scaffoldings line 3 instead
php artisan ui bootstrap --auth
npm install
Example 3: how to install bootstrap in laravel 8
// How to install bootstrap in laravel
composer require laravel/ui
php artisan ui bootstrap
npm install && npm run dev