Hung Thai
Hung Thai
FFilament
Created by Hung Thai on 4/3/2025 in #❓┊help
Form Select relationship with custom search
yeah, guess I have to customize this to my need then. Thank you!
28 replies
FFilament
Created by Hung Thai on 4/3/2025 in #❓┊help
Form Select relationship with custom search
🥲
28 replies
FFilament
Created by Hung Thai on 4/3/2025 in #❓┊help
Form Select relationship with custom search
but then I can not perform the ->createOptionForm() / -editOptionForm() on the Select component
28 replies
FFilament
Created by Hung Thai on 4/3/2025 in #❓┊help
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
FFilament
Created by Hung Thai on 4/3/2025 in #❓┊help
Form Select relationship with custom search
An attempt was made to evaluate a closure for [Filament\Forms\Components\Select], but [$query] was unresolvable.
28 replies
FFilament
Created by Hung Thai on 4/3/2025 in #❓┊help
Form Select relationship with custom search
the searchable callback didn't accept the $search param, so I can't get the user input for search there
28 replies
FFilament
Created by Hung Thai on 4/3/2025 in #❓┊help
Form Select relationship with custom search
I've tried to pass in the $query to the searchable(), but it throw me the error, it didn't accept the $search param
28 replies
FFilament
Created by Hung Thai on 4/3/2025 in #❓┊help
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
FFilament
Created by Hung Thai on 4/3/2025 in #❓┊help
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
FFilament
Created by Hung Thai on 4/3/2025 in #❓┊help
Form Select relationship with custom search
unfortunately, this did not work with the relationship defined...
28 replies
FFilament
Created by Hung Thai on 2/20/2025 in #❓┊help
Displaying Relationship Records in Filament Table instead of Owner Model's resources
thank you for your replied. But, can you be more specific? You mean I have to customize all the Edit/Delete/View Action in the $table->actions() method?
6 replies
FFilament
Created by dyo on 10/26/2024 in #❓┊help
Before method in repeater delete action
you can delete the Item from repeater like:
...->action(function (array $arguments, Repeater $component): void {
$items = $component->getState();
unset($items[$arguments['item']]);
$component->state($items);
$component->callAfterStateUpdated();
})
...->action(function (array $arguments, Repeater $component): void {
$items = $component->getState();
unset($items[$arguments['item']]);
$component->state($items);
$component->callAfterStateUpdated();
})
23 replies
FFilament
Created by dyo on 10/26/2024 in #❓┊help
Before method in repeater delete action
You need to create a custom delete action and disable the origin delete action from the repeater. like Repeater::make()...->deletable(false)->extraItemActions([ ... //your custom delete logic here ])
23 replies
FFilament
Created by Hung Thai on 10/17/2024 in #❓┊help
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
FFilament
Created by TheSoulrester on 10/9/2024 in #❓┊help
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
FFilament
Created by ocram82 on 9/20/2024 in #❓┊help
Disable view action when click on row
just add this after your $table ->recordAction(null)->recordUrl(null)
11 replies
FFilament
Created by ζ͜͡Gurthang on 9/11/2024 in #❓┊help
Livewire component in blade template
<x-filament-panels::page> use filament page component when you generate it with php artisan make:filament-page where do you want to add your table? Livewire page or Filament generated page?
6 replies
FFilament
Created by Twixzor on 9/9/2024 in #❓┊help
Modal resource editing
Up. I'm looking for the same effect but haven't found any yet.
16 replies