twbs/bootstrap
Bootstrap is a popular open-source front-end toolkit for building responsive, mobile-first websites. It provides ready-to-use CSS and JS components, a flexible grid system, and utilities to quickly create consistent, accessible UI across browsers.
Start by installing Bootstrap via Composer (composer require twbs/bootstrap) to get the official distribution. Unlike earlier versions (v4/v5), the v5 package includes compiled CSS/JS and source SCSS/CSS. In Laravel, publish the config and assets using php artisan vendor:publish --tag=bootstrap (if a service provider is provided) or manually link assets in your resources/css/app.css (e.g., @import 'bootstrap';). Compile with Vite or Mix. First use case: enable responsive layouts by adding the Bootstrap container and grid classes to a Blade template (e.g., <div class="container">...</div>).
resources/sass/_variables.scss (for v5) before importing Bootstrap SCSS to customize colors, spacing, and fonts consistently.resources/js/app.js, import Bootstrap’s JS modules individually (e.g., import { Modal } from 'bootstrap';) to avoid bundling unused code.x-data or Livewire events—e.g., emit bootstrap.modal.show from Livewire to trigger new Modal(...).show().@import 'bootstrap'; in SCSS to override defaults.@popperjs/core unless using custom builds.dist/ files for production (bootstrap.min.css/js), but use src/ SCSS for Tailwind-style customization workflows.eval() in some fallback paths—use the non-eval builds or ensure 'unsafe-eval' is not enforced strictly.twbs/bootstrap v5+ removed jQuery dependency—ensure legacy Blade components aren’t relying on jQuery plugins like $.fn.modal.How can I help you explore Laravel packages today?