i am new to laravel and filament...
so i need to remake an existing table into filament table. but for some reason it looks like this... here is the code for livewire file:
and here is the usage in blade file:

35 Replies
https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component
i was following this dcumentation but without any result.. i really need help
Looks like you missed some installation steps:
https://filamentphp.com/docs/3.x/tables/installation#existing-laravel-projects
thx i will try and let you know
did everything as u suggested but without result
Can you check the network tab in DevTools whether some files are missing? Looks like your stylesheet is not loaded
what stylesheet should be loading there?
The one from your app. Probably
app.css
?so i need to code styles to those tables?
No, you don't. They are provided by Filament. But the stylesheet needs to be there so they are applied
See the "Configuring Styles" step
yep app.css is missing there
So you didn't include any styles in your layout?
not in my layout i have app.css mentioned in vite.config
i thought it would auto load that
No, you need to include them in the layout. Should be in the default Laravel layout file unless you removed it.
Vite cannot know on which page you need which stylesheets
now it looks like this

Are the all the JS files loaded?
Did you add
@filamentScripts
and @filamentStyles
to your layout?no i did not
Please read the docs I linked completely. It's all mentioned there.
added this to my layout:
You do no need
resources/css/filament/panel/theme.css
because it's outside a panelremoved it and that broke the table
Then your tailwind config probably isn't configured correctly
configured exactly like in the docs
Did you rebuild your
app.css
?ofc
All I can say: It shouldn't be needed and your app.css should contain the relevant classes.
Can you share the tailwind config?
sure:
That looks like the tailwind config for your theme, not the tailwind config for your project
sorry here is the project tailwing config
And that one is missing the relevant
content
pathsadded them and its still not working...
You need to add the files you are using Tailwind classes. Not your CSS files:
🤔

and yes i did the rebuild
Not sure whether it's the cause, but you are missing the preset. Please see: https://filamentphp.com/docs/3.x/tables/installation#installing-tailwind-css
i did everything as it is in the docs
everything
No. You just shared the tailwind config which isn't the same 🤷🏼♂️