Al Elliott
Using Tailwind & Livewire outside of Filament...
If anyone else has this question then this is what I did. (Feel free to correct me)
1. Tested if Livewire works without me doing anything. Created a new component and tried to render in a brand new public layout. It works! Woo!
2. Spent 2 hours reading the docs on assets trying to understand how to incorporate my public facing tailwind styling with Filament. Decided life was too short and just installed tailwind as if the project didn’t already have it. Took 90 seconds and after adding the
—- Is this the right way to go? Probably not. Should you do it this way? Maybe, if you’re looking for a quick and dirty way to get stuff done. Will I learn later that I’m a fool and there’s a far better way? Undoubtably (that describes my entire 6 years using Laravel) Hope this helps someone. And feel free to tell me what I’ve done wrong. I love learning.
@vite()
directive to my new public layout it worked like a charm. Woo^2.
3. Realised that I wouldn’t really use Alpine on its own so just didn’t change anything.—- Is this the right way to go? Probably not. Should you do it this way? Maybe, if you’re looking for a quick and dirty way to get stuff done. Will I learn later that I’m a fool and there’s a far better way? Undoubtably (that describes my entire 6 years using Laravel) Hope this helps someone. And feel free to tell me what I’ve done wrong. I love learning.
11 replies