Is it possible to add a default emptyStateHeading for all the tables?
Hello I know how to edit emptyStateHeading explained here https://filamentphp.com/docs/3.x/tables/empty-state
But I want to ask if it is possible to give a default title for every table I use in system? I want to show for example "No content" for all the tables I use.
3 Replies
Let's answer my own question.
You can add a view at path
resources/views/vendor/filament-tables/components/empty-state/heading.blade.php
and use it like
<h4 {{ $attributes->class(['fi-ta-empty-state-heading text-base font-semibold leading-6 text-gray-950 dark:text-white']) }}>
No Data
</h4>
Add the following to your
AppServiceProvider.php
boot method:
Thank you π