How to remove bootstrap laravel

Learn how to remove a Bootstrap Laravel example with step-by-step instructions.

Removing Bootstrap from Laravel

Bootstrap is a popular open source toolkit for developing with HTML, CSS, and JavaScript. It provides a comprehensive set of reusable components, libraries, and tools, which developers can use to quickly build web applications. Bootstrap is used as the default frontend framework for the Laravel web framework, but it can be removed if it is not needed.

To remove Bootstrap from Laravel, you will need to edit the package.json file. This file is located in the root directory of your Laravel project. Open the file in a text editor and find the following section:


  "dependencies": {
      "laravel/framework": "5.8.*",
      "bootstrap": "^4.0.0"
  },

The above section shows the current dependencies for your Laravel project. The line "bootstrap": "^4.0.0" indicates that the current version of Bootstrap is being used. To remove Bootstrap, delete this line from the package.json file and save the file. Then, run the following command in your terminal to update the dependencies:


  composer update

This will remove Bootstrap from your Laravel project. After running this command, you will no longer be able to use Bootstrap components in your project. If you still need to use Bootstrap, you can reinstall it by running the following command:


  composer require laravel/ui

This will install the Laravel UI package, which includes Bootstrap, Vue, and React. If you need to use Bootstrap components in your project, this is the recommended way of doing so.

Answers (0)