How to Install Bootstrap 5 in Laravel 9 Example?

Jul 16, 2022 . Admin


Today, I will let you know example of laravel 9 install bootstrap 5. you will learn install bootstrap 5 in laravel 9. I would like to show you how to use bootstrap in laravel 9. you can see laravel 9 npm install bootstrap 5.

If you are beginner with laravel 9 then i am sure i can help you to install bootstrap 5 in laravel 9. it's very simple way to install using laravel ui composer package. laravel ui package add laravel 9 support.

composer require laravel/ui

After successfully install above package then we are ready to install bootstrap 5 with our application.

we can install two way, one is a simple bootstrap 5 setup install and another is install bootstrap 5 with auth. So let's see both way.

Install Bootstrap 5
php artisan ui bootstrap	
Install Bootstrap 5 with auth
php artisan ui bootstrap --auth

Now we installed bootstrap, you can see your resource directory js folder.

You also need to install npm and run it. so let's run both command:

Run NPM
npm run dev

Now you can work with your bootstrap 5 app.

It will help you....

#Laravel 9 #Laravel