F
Filament11mo ago
Felix

Is it possible to add filament javascript with an filament table to an non filament page?

I want to add an filament table to an normal laravel page where the layout is an standard laravel layout. How do you do this?
6 Replies
Harvey
Harvey11mo ago
You can add a table to a Livewire component and add it to the page https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component, would that work?
Felix
FelixOP11mo ago
well, I made an livewire component with an table by doing: php artisan make:livewire-table . but when in put the @livewire('table') in the page the styling an JS is not included.
Harvey
Harvey11mo ago
https://filamentphp.com/docs/3.x/tables/installation#configuring-your-layout Have you included @filamentScripts in your layout blade file
Felix
FelixOP11mo ago
no, I haven’t. but just did (as per the link) and it didn’t work.
Harvey
Harvey11mo ago
Strange, I just made a table and it's showing fine. You definitely have @filamentStyles in the <head> and @filamentScripts in the body? And you've run php artisan filament:install to publish the assets?
Felix
FelixOP11mo ago
yes I have looked in the browser console it gives an Could not find Livewire component in DOM tree.
Want results from more Discord servers?
Add your server