rominronin
How to Make Multiple Select Filters Combine with 'And' Logic Instead of 'Or' Logic in FilamentPHP?
This is cool, but if you you Filter (instead of SelectFilter), you can use ->form() to have more control over the form and it's reactivity.
5 replies
How to Make Multiple Select Filters Combine with 'And' Logic Instead of 'Or' Logic in FilamentPHP?
This is an old post, but I'm in v3 and I'm trying to do something similar. I've achieved it using custom select filters, which are then updating a component property
$this->filter_value
, which is then being checked in $table->modifyQueryUsing
. This works, but I'm wondering if there is a neater way to implement this.5 replies
Fileupload resize doesn't seem to work, what am I missing?
Just some additonal information: the 'contain', 'cover' and 'force' modes all do the same thing in my application. I have followed the cache/rebuild steps in the 'READ BEFORE POSTING' guide. As far as I understood it, Filepond is already included in the filament/filament, so I don't need to add any additional npm plugins or composer libraries.
8 replies
Search translation text (not just key)
Just found this, will give it a go tomorrow: https://filamentphp.com/tricks/customize-table-search
2 replies
Refactoring closures into a trait (or some other structure)
OK this actually works 100%, the issue I faced was ACTUALLY because the method name I used seems to be used by Filament for something else, changing the name to something else (I used
productHydration()
) worked as desired.2 replies
Best practices for styling Filament components
Just want to add here: what if we WANT to use tailwind classes here and there? Then we are talking option 3., and option 4. would also be nice if I want to change the font or header sizes, no?
9 replies