A package for Laravel Jetstream (4.x || 5.x) with Livewire (3.x) + Blade to replace TailwindCSS with Bootstrap 5.3
MIT License
Inspired by joeycoonce/jetstrap/
I could not find a working package for this setup, but I was overwhelmed by Tailwind, so decided to make one that aims at nothing more than making the latest Laravel Jetstream scaffolding work with the latest Bootstrap.
Should be installed in a new laravel/jetstream livewire
project.
composer require hlev/jetstrap-minimal
CAVEAT: the next step will overwrite/remove files!
./artisan jetstrap:swap
npm update
The command:
package.json
removes Tailwind, adds Bootstrap, @popperjs/core and SASStailwind.config.js
postcss.config.js
and vite.config.js
resources/css/
sass
and js
resources in placeresources/views
./
route from 'welcome'
to 'dashboard'
You may want to or already have run:
./artisan livewire:publish
Then update config/livewire.php
to use 'bootstrap'
pagination. I did not test this.
As for the components of the scaffolding, I mostly copied them over from joeycoonce/jetstrap/, and fixed the following:
switchable.team.blade
: 'jet-'
prefix removed in @props[ 'component' => ...]
referencemodal.blade.php
: @entangle($attributes->wire('model'))
removed .defer
to make modals work. As per Livewire 3.x upgrade doc
@livewireStyles
and @vite()
assets@livewireScripts
to guest layout, since Jetstream 4.x uses Alpine on guest pages too