BelongsTo is returning all records - ignoring where on relationship?
I have a Task Model with this relationship
On my form i have a select
but its returning all task statuses - not only the ones where the model column = Task?
am i doing something wrong here?
Thanks for any advice!
5 Replies
yeah this is just how filament works atm
when it gets the relationship query laravel strips the sceope
its a bit weird
might try and fix it in v3 but not sure how well it will work
A workaround I've been using is to fill the options and validate manually:
You Sire ar a genius! I have been going nuts with this all day!
?
A bit cleaner I think! But you would still need the validation.
Or would you? lol, I don't even know.