Hung Thai
Form Select relationship with custom search
the modifyQueryUsing accept the $query and $search param.
But when i test it, it doesn't accept the $search.
like:
if ($search) { dd($search); }
to check if the search was accepted, but it didn't run.28 replies
Form Select relationship with custom search
this is not what I'm looking for.
I wantted to perform the search from within the Select component.
Like
Forms\Components\Select::make('product')->relationship('orderProducts', 'product_name')->searchable(true)
and then perform the search (when the user input the search field) on the Product - Category relationship
28 replies
Form Select relationship with custom search
Let me try this. Thank you for your time.
And btw, do you know how to create a new option from the Form's Select fields without any relationship define to the component? Whenever I want to add new option, the app thrown me the error 'Call to a member function isRelation() on null'.
28 replies
How can I get the parent Resource from RelationManager class?
that method return the parent record of the relationship, what i'm trying to get is the full path of the ClassName
like :
App\Filament\Resources\UserResource
from the ContactRelationManager
...6 replies
ViewAction::Make() in users list to show transactions of a user
If your dont create an action, how can you open the modal?
You need to create a custom action for your User list table/record, loaded it with your relationship (HasMany) to show the correct table/form/infolist in a modal if that's all you want.
There's no other way around this modal requirement if you're using Filament only.
11 replies