How to correctly override the table container blade view?
I need to change around some structural things in the table container, namely I need to group certain items to make them sticky (can't at the moment without using JS since they're adjacent divs), and also reposition the search bar and condense things.
So, I've copied
vendor/filament/tables/resources/views/index.blade.php
to resources/views/vendor/filament-tables/components/container.blade.php
and it's successfully detected, but throwing errors, such as Undefined variable $getActions
. I would have thought that any existing variables are still passed to the component? I've simply copied the original over with no modifications yet.
What's the correct way to override this blade view?1 Reply
Solved: I was being dumb and copied the container component naming scheme by accident
<x-filament-tables::container>
but instead I should have kept the same naming as the file I copied, so I was overriding the wrong file (this is just a container around the component). Correct placement was resources/views/vendor/filament-tables/index.blade.php