Thursday, February 27, 2020

How to Install Bootstrap 4 in Laravel

How to Install Bootstrap 4 in Laravel

Hi Buddies

I want to show you how to install Bootstrap 4 in the Laravel 6 application. We need to install the Laravel UI package to install NPM Bootstrap 4 in Laravel 6. You can do this easily with the npm command with the Laravel 6 Ui package.

If you are a beginner with Laravel 6, I can certainly help you install Bootstrap 4 on Laravel 6. Installation with the Laravel UI Composer package is very easy.

Laravel ui offers a possibility to install the configuration of Bootstrap, Vue and React. They also offer an authentication framework for logging in and registering. Laravel 6 provides an easy way to work, fly and respond with Bootstrap.

If you want to install Bootstrap 4 in your Laravel 6 project, install the following Laravel UI Composer package to get the command:

composer require laravel/ui

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

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

Install Bootstrap 4


php artisan ui bootstrap

Install Bootstrap 4 with auth


php artisan ui bootstrap

Now we install Bootstrap. You can see the js folder of your resource directory.

You also need to install and run npm. So let's execute both commands:

Install NPM


npm install

Run NPM


npm run dev


Now you can start working with your Bootstrap 4 application.

I hope this could help you ...

0 comments:

Post a Comment

Please don't enter any spam link in the comment box.