Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Bootstrap Laravel Package

twbs/bootstrap

Bootstrap is a sleek, intuitive, and powerful front-end framework for faster and easier web development. It ships with prebuilt CSS and JS, Sass sources, and icons for building responsive, mobile-first sites.

View on GitHub
Deep Wiki
Context7

The most popular front-end framework for developing responsive, mobile first projects on the web.

Frequently asked questions about Bootstrap
How do I install Bootstrap in a Laravel app using Composer?
Run composer require twbs/bootstrap:5.3.8. Composer installs the package's CSS, Sass, and JavaScript files under vendor/twbs/bootstrap. No Laravel service provider is documented for this package, so reference the vendor dist files, copy them into public, or use npm with Vite for asset compilation.
Is Bootstrap v6.0.0-alpha.1 safe to use in a production Laravel application?
No. v6.0.0-alpha.1 is a major-version pre-release with empty release notes, so the breaking-change inventory and migration guidance are unknown. Keep production on the 5.3.x baseline and evaluate v6 only in a throwaway branch or spike repository with an exact prerelease tag.
Does Bootstrap require jQuery in Laravel?
No. Bootstrap 5 and later ship dependency-free JavaScript plugins, so jQuery is not required for modals, dropdowns, or other components. Do not add jQuery solely for Bootstrap in a Laravel application.
Which Bootstrap version should I pin for a Laravel production build?
Pin Bootstrap to ^5.3.8 in package.json. The caret range accepts 5.x updates but excludes 6.x, which keeps alpha and future major releases out of production. Avoid latest, next, or other floating dist-tags in committed dependency files.
How do I stop Composer or Dependabot from pulling a Bootstrap alpha?
Use an explicit ^5.3.8 constraint and commit your lockfile. Configure Dependabot or Renovate to ignore prerelease and major Bootstrap updates, or require manual review for them. Also check CDN URLs and CI scripts for latest or next references that could silently resolve to an alpha.
Does upgrading Bootstrap affect Laravel backend code or PHP compatibility?
Bootstrap is client-side only, so it does not change Laravel routing, Eloquent, queues, the service container, or PHP compatibility. Upgrades affect Blade markup, CSS classes, JavaScript behavior, and your Mix or Vite build. Backend tests may pass while frontend regressions still occur.
How do I compile Bootstrap Sass with Laravel Vite?
In Laravel Vite, import Bootstrap Sass from node_modules and declare your variable overrides before importing bootstrap/scss/bootstrap. Bootstrap 5.3.x works with standard Sass compilation, but v6 Sass module expectations are not confirmed. Test the pipeline in a branch before changing production.
What will break in Bootstrap 6 for my custom SCSS overrides?
It cannot be scoped from the available release information. A major release commonly changes Sass tokens, utility classes, component markup, and JavaScript data-attribute APIs. Audit overrides that touch Bootstrap internals rather than documented variables or extension points, and re-test accessibility contrast rather than assuming it carries over.
Is Bootstrap 5.3.x still maintained now that Bootstrap 6 alpha exists?
Bootstrap 5.3.8 is the supported production baseline in this assessment, but the 5.3.x support window after v6 is not confirmed. The empty v6 release notes provide no maintenance or migration contract. Ask the maintainers and track security advisories before planning a long-term upgrade.
Can I use Bootstrap with Laravel Jetstream or Laravel UI?
Laravel UI can scaffold Bootstrap, while Jetstream uses Tailwind by default, so mixing them requires deliberate setup. Third-party admin themes, UI kits, DataTables integrations, and Blade components may pin or assume specific Bootstrap versions. Verify those dependencies before upgrading Bootstrap.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
vento/laravel-airbrake
wfeller/laravel-batch
maco-studios/mage-os-installer
busarm/armie
siberfx/laravel-logger
kfteam1991/dcat-admin
dashed/dashed-laposta
dashed/dashed-ecommerce-montaportal
dashed/dashed-ecommerce-etsy
neohq/string-blade-compiler
log1x/acf-composer
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager