Is Filament v3 compatible with Laravel 12?
Just recently installed laravel app version 12, using the livewire starter kit. And I noticed
flux
has been used.
Upon installing filament table builder, i notice this
Filament uses Tailwind CSS v3 for styling. If your project uses Tailwind CSS v4, you will unfortunately need to downgrade it to v3 to use Filament. Filament v3 can't support Tailwind CSS v4 since it introduces breaking changes. Filament v4 will support Tailwind CSS v4.I tried downgrading to tailwindcss3, and some of the UI I did already broke (as flux is existing in the project) So, should I downgrade to laravel 11?
9 Replies
Use laravel 11 for now as you'll get issues since v12 was released days ago.
Come on, seriously (sarcastic)... I stared a new app yesterday, went through the work of manually initiating a version 11... then saw the news here that the update was out to support V12, so I blew that away and started a new v12, spent all day yesterday modeling my db... and now I'm supposed to go back to V11? π (I mean, I'm still gonna try with V12, and I didn't even get around to downgrading Tailwind yet.)
But V11 won't work with this latest version of Filament either will it, because it's marked for Laravel ^12.0 (and other dependencies have also been moved upward and not including the older versions). So then I have to also manually specify version of Filament prior to yesterday's?
Not at all, Filamentphp is independant of any application you are using and is supported by V12 Laravel. However, if you are using a starter kit of laravel where you want to embed parts of filament into it you will have issues because Filament V3 is tailwind v3 and tailwind v4 was just released and used by Flux. Filament v4 is tailwind V4 but we are not ready for release for a little bit yet whilst Dan works on some kinks.
Ok I see what you mean. Can't use Flux/L12 and Filament v3 all at same time.
Do you have a timeline for Filament v4 btw? I asked on Reddit but no one responded. I looked at the GitHub alpha/beta but looks like there's a lot of items open, so I was figuring it's six months out or so.
Well you can, but not if you want to embed filament v3 tables / forms into Flux used frontends. That's all.
No date yet as it's open source.. Dan's doing it in his free time. But most of it is documentation, so I wouldn't expect it being a crazy time away.
Just making sure, but if I don't plan to do any custom styling in filament, I won't have issues because I won't have to recompile the styling? (while using L12 with tailwind v4)
Correct providing you are using filament panel and not filament tables/forms in your L12 tailwind v4 frontend.
https://github.com/filamentphp/filament/releases/tag/v3.3.0 was released with Laravel 12 support π
GitHub
Release v3.3.0 Β· filamentphp/filament
What's Changed
Laravel 12 support by @danharrin in #15695
fix: Exporter not caching export columns by @AurelDemiri in #15662
Update [bs] translation in table.php by @ahmic in #15691
Add MIME t...
yes but just version number updates, not Tailwind v4 support π (well there were some other minor updates too of course)