Action - utility injection (Get, Set)
Hi All,
The actions have some utility injections (https://filamentphp.com/docs/4.x/actions/overview#action-utility-injection)
The one that i'm missing at the moment is Get and Set (i'm missing them because i want to use them).
For example i have below action
What i want to try is that all validation will be handled by the action.
I don't want the data to save something, So in the action i have
$action->halt()
But i can not Set any value in the action.
How do i change the view in the action?
I have tried the aftervalidate
hook, but Get and Set are also not available.
I'm happy to here any other solutions.
Solution:Jump to solution
i found a not so nice way to do this.
```php
Action::make('search_by_code')
->label(__('resource.companies.actions.search_by_code.label'))...
1 Reply
Solution
i found a not so nice way to do this.