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
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?
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.https://filamentphp.com/docs/3.x/tables/installation#configuring-your-layout Have you included
@filamentScripts
in your layout blade fileno, I haven’t. but just did (as per the link) and it didn’t work.
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?yes
I have looked in the browser console it gives an
Could not find Livewire component in DOM tree
.