Adds Bootstrap 5 css classes to the nice Soil nav walker in a Sage 10 project.
- Assumes you're using Sage 10.
- Assumes the Roots/Soil plugin is installed and activated.
- Assumes Tailwind has been removed from the Sage project and Bootstrap 5 has been added.
- Add BootstrapNav.php to the themes /app directory.
- Replace the contents of /resources/views/sections/header.blade.php with the version in this gist.
- Only supports 1 level of dropdowns.
- There are probably better versions of this out there.
- About Sage: https://roots.io/sage/
- About Soil: https://roots.io/products/soil/
- Removing Tailwind and adding BS5 to a Sage 10 project: https://roots.io/sage/docs/css-frameworks/
- Bootstrap navbar docs: https://getbootstrap.com/docs/5.2/components/navbar/