Home > Software engineering >  Change Bootstrap Version In Big Laravel Project
Change Bootstrap Version In Big Laravel Project

Time:08-12

Hey Guys I have A big Laravel Project And The project Bootstrap version Is 3 I Want To Change It . How I can do it?

CodePudding user response:

Going from Bootstrap 3 to 4 is quite major, as a lot has been changed.

Based on https://getbootstrap.com/docs/4.0/migration/ , you can try and replace the changes, whichever applicable. But be ready for lots of designs to break if you relied heavily on bootstrap 3 classes, as well as using a lengthy time to do this. Maybe redesigning all the views would be the better approach.

Bootstrap 5 is out, why not consider that instead? Since it will be a major effort regardless. Take note that Bootstrap 5 does not have jQuery built in.

CodePudding user response:

There are a few ways to change the Bootstrap version in a Laravel project. One way is to edit the composer.json file and change the version number in the require section. Another way is to edit the config/app.php file and change the version number in the providers section.

  • Related