Hello Devs,

In this tutorial, we are going to learn how to install bootstrap in laravel 7 app.

Run this command:

composer require laravel/ui

Install Bootstrap

php artisan ui bootstrap

Install Bootstrap With Auth

php artisan ui bootstrap --auth

Install NPM

npm install


npm run dev

Run this command:

<!doctype html>
    <!-- Scripts -->
    <script src="{{ asset('js/app.js') }}" defer></script>
    <!-- Styles -->
    <link href="{{ asset('css/app.css') }}" rel="stylesheet">
    <h1>How to install Bootstrap in Laravel 7? - Rathorji.in</h1>

I hope this example helps you.