low-res (Paul)
low-res (Paul)
FFilament
Created by low-res (Paul) on 7/24/2023 in #❓┊help
unique validation on soft-deleted records
Thx for your help. Unfortunately your solution did not work, but I solved myself. It's actually much easier (as I was expcting from filament :)) ->unique( ignoreRecord: true, callback: function( Unique $rule ){ return $rule->whereNull('deleted_at'); } ) is all that is needed.
8 replies
FFilament
Created by low-res (Paul) on 7/24/2023 in #❓┊help
unique validation on soft-deleted records
Thx for your answer! But where do I get the id of the current userrecord then?
8 replies
FFilament
Created by low-res (Paul) on 6/26/2023 in #❓┊help
CheckboxList value is always a single value?!
And again: thank you @Dan Harrin , for your help!
5 replies
FFilament
Created by low-res (Paul) on 6/26/2023 in #❓┊help
CheckboxList value is always a single value?!
OK. I call $this->form->fill() now inside the mount() method. Now it's working as expected. Whats the reason for taht?
5 replies
FFilament
Created by low-res (Paul) on 6/26/2023 in #❓┊help
CheckboxList value is always a single value?!
No. When should fill() be called?
5 replies
FFilament
Created by low-res (Paul) on 6/26/2023 in #❓┊help
How to test table with filter form
Ah! OK, thank you very mutch! That was exactly what I was missing! Now it works!
8 replies
FFilament
Created by low-res (Paul) on 6/26/2023 in #❓┊help
How to test table with filter form
Thanks @Dan Harrin for your answer! But my filter is a pretty complex form, with about 20 TextInput and Select formfields. Not just a "simple" filtervalue. My example just contains one TextInput (TextInput::make('hawb')) for the sake of better overview. But there are much more fields included. Arranged in a grid with collabsable sections and so on. More like it is described here (https://filamentphp.com/docs/2.x/tables/filters#custom-filter-forms). So I only have this single Filter::make call that contains the whole filterform. Or is that already the wrong approach?
8 replies