Migrating Laravel from Bootstrap 3.4.1 to Bootstrap 5.3: Steps and Popper.js Requirements
How can I migrate my Laravel codebase from Bootstrap 3.4.1 to Bootstrap 5.3? Do I need to include Popper.js, and if so, which version should I use? Can anyone help with the steps?
@tykus thanks for your help, using npm uninstall bootstrap@3
then npm install [email protected]
then npm run dev
do i need to go to each blade file and do the changes according to bootstrap 5 classes and will it break anything ?
using npm uninstall bootstrap@3 then npm install [email protected] then npm run dev do i need to go to each blade file and do the changes according to bootstrap 5 classes
@abhisheknayak_1111 Yes, you need to go through your views, and replace any Bootstrap 3-specific classes with their Bootstrap 5 equivalents.
will it break anything ?
No one can possibly say. How is a stranger on the Internet supposed to know if a codebase they’ve never seen will break or not?
Bootstrap went through a complete rewrite between versions 3 and 4. It now uses flexbox instead of floats. Many class names have changed and some components are no longer there. Panels were replaced by cards, for example.
You should go read the migration guides to find out what has changed. You'll find the requirements there as well. But upgrading from 3 isn't going to be as simple as replacing a couple of <link> tags or updating an NPM dependency.