`EditAction` and `DeleteAction` on a ViewRecord's `getHeaderActions` method throws an error
I have the following
ViewRecord
page for a resource and adding HeaderActions EditAction
and DeleteAction
throws an error.
Error
Any advice.Solution:Jump to solution
actually figured it out just now after looking at the docs. need to call the
make()
method for the class
replaced my code with and it worked
```php...4 Replies
Action\EditAction::class,
Action\DeleteAction::class,
I thinks this will solve it. Or Change it to this:
EditAction::class,
DeleteAction::class,
And change the use from:
use Filament\Actions;
to
use Filament\Actions\Action;
https://filamentphp.com/docs/3.x/panels/pages#header-actions
@Weccop , that same code I posted works for the EditRecord page for the resource, not the ViewRecord
and the is no namespace
Filament\Actions\Action
Solution
actually figured it out just now after looking at the docs. need to call the
make()
method for the class
replaced my code with and it worked
Ah nice. Didnt see that one π