damarev
damarev
FFilament
Created by damarev on 6/6/2024 in #❓┊help
$getAction() with arguments
Thank you Leandro. Yes I have tried this also:
public function myAction()
{
Action::make('myAction')
->action(function (array $arguments) {
dd($arguments);
});
}
public function myAction()
{
Action::make('myAction')
->action(function (array $arguments) {
dd($arguments);
});
}
and in the view
{{ ($this->myAction)(['language' => 'es']) }}
{{ ($this->myAction)(['language' => 'es']) }}
But it throws an exception: Livewire\Exceptions\PropertyNotFoundException - Property not found on component.
31 replies