get form data from action
hi, i want to learn is there a change about get data in action form. In v2 i use this code in my resource's view page and i can get data to 'apiTest' function but now in v3 i get the error
Unable to resolve dependency [Parameter #0 [ <required> array $data ]] in class App\Filament\Resources\CompanyResource\Pages\ViewCompany
.
Solution:Jump to solution
I think you need to get the data in the
action()
callback, and pass it to your method:
```php
->action(function ($livewire, $data) {
$livewire->apiTest($data);
})...2 Replies
Solution
I think you need to get the data in the
action()
callback, and pass it to your method:
thanks, that solved my problem