Skip to content
Readerstacks logo Readerstacks
  • Home
  • Softwares
  • Angular
  • Php
  • Laravel
  • Flutter
Readerstacks logo
Readerstacks
How to Use Bootstrap 5 in Laravel 9

How to Use Bootstrap 5 in Laravel 9 ?

Aman Jain, May 30, 2022May 30, 2022

Bootstrap is a UI framework to enhance the beauty of website. In this tutorial i will show you to use Bootstrap 5 in laravel. Using the bootstrap we can enable multiple UI multiple functionality like we can show amazing buttons , card, input etc. Even with JavaScript library of bootstrap give us several functionality like popup, sliders, date picker etc.

To explain and understand the use bootstrap 5 in laravel 9 i will install the simple package laravel/ui which gives basic starting point using Bootstrap, React, and / or Vue. Laravel uses NPM to install these frontend frameworks in laravel application.

Let’s start the tutorial

Step 1: Create a fresh laravel project

Open a terminal window and type below command to create a new project

composer create-project --prefer-dist laravel/laravel blog

You can also read this to start with new project

Step 2 : Install the package

Now install the package using composer in laravel root directory, open the terminal in laravel root directory and run below command to install laravel/ui the package.

composer require laravel/ui

Step 3 : Enable the bootsrap

We have just installed the laravel/ui package now we can enable it using the below artisan command

php artisan ui bootstrap

Not only bootstrap you can easily enable vue or react js as well

php artisan ui vue
php artisan ui react

Or if you want to enable auth layout then

php artisan ui bootstrap --auth

Here we are also enabling the auth routes like login and register scaffolding page in bootstrap.

Step 4 : Install js and css using npm

Final step is to install js and CSS using node package manage(NPM)

npm install && npm run dev

Run our application using artisan command and check the implementation

php artisan serve

Screenshots:

laravel bootsrap
laravel bootsrap
Screenshot 2022 05 30 at 11.09.28 PM
Screenshot 2022 05 30 at 11.10.18 PM
Screenshot 2022 05 30 at 11.10.29 PM

Related

Php Laravel Laravel 9 bootstraplarvael

Post navigation

Previous post
Next post

Related Posts

Php make a component in laravel 10

How to make component in Laravel 8 ?

December 8, 2021November 10, 2023

This tutorial demonstrates how to make component in Laravel 8 using Blade and simple html. Laravel offers a library to construct HTML components, much like Angular or React, that can accept parameters through HTML attrutes. These components can be used anywhere within our application and are independent of controller routes….

Read More
Php How to Create Enum Field in Laravel Migration

How to Create Enum Field in Laravel Migration ?

June 30, 2022August 17, 2022

In laravel while creating table schema for some columns we want to add column type enum field so in this article we will create Enum Field in Laravel Migration. We can easily add enum column as we add other varchar integer etc columns in laravel. Enum is useful when we…

Read More
Php How to Create a Custom Artisan Command in LaravelHow to Create a Custom Artisan Command in Laravel

How to Create a Custom Artisan Command in Laravel ?

May 19, 2022May 26, 2022

Laravel artisan provides several inbuilt commands to help the developer to build a robust applications like to create the controller, models, migration etc. and in this article i will show you to create your own custom artisan command in laravel. This custom artisan can be configure according to your needs…

Read More

Aman Jain
Aman Jain

With years of hands-on experience in the realm of web and mobile development, they have honed their skills in various technologies, including Laravel, PHP CodeIgniter, mobile app development, web app development, Flutter, React, JavaScript, Angular, Devops and so much more. Their proficiency extends to building robust REST APIs, AWS Code scaling, and optimization, ensuring that your applications run seamlessly on the cloud.

Categories

  • Angular
  • CSS
  • Dart
  • Devops
  • Flutter
  • HTML
  • Javascript
  • jQuery
  • Laravel
  • Laravel 10
  • Laravel 11
  • Laravel 9
  • Mysql
  • Php
  • Softwares
  • Ubuntu
  • Uncategorized

Archives

  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • October 2024
  • July 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • July 2023
  • March 2023
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Recent Posts

  • Understanding High Vulnerabilities: A Closer Look at the Week of July 14, 2025
  • Exploring Fresh Resources for Web Designers and Developers
  • The Intersection of Security and Technology: Understanding Vulnerabilities
  • Mapping Together: The Vibrant Spirit of OpenStreetMap Japan
  • Understanding High Vulnerabilities: A Deep Dive into the Weekly Summary
©2023 Readerstacks | Design and Developed by Readerstacks
Go to mobile version