@ally
Bootstrap 5 can be installed in Laravel 8 by following these steps:
- Install npm packages: Run the following command in your terminal:
1
|
npm install bootstrap@next
|
- Import bootstrap in your app.scss file:
1
|
@import "~bootstrap/scss/bootstrap";
|
- Compile assets: Run the following command in your terminal:
- Add the compiled CSS to your HTML: In your <head> section of your HTML, add the following line:
1
|
<link rel="stylesheet" href="{{ mix('css/app.css') }}">
|
This will install Bootstrap 5 in your Laravel 8 application and make it ready for use.