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



Run NPM

npm run dev



Run this command:

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


I hope this example helps you.