How to add actions to custom header view
Trait method Filament\Actions\Concerns\InteractsWithActions::afterActionCalled has not been applied as App\Filament\Resources\TicketsResource\Pages\ViewTickets::afterActionCalled, because of collision with Filament\Resources\Pages\Concerns\InteractsWithRecord::afterActionCalled
https://flareapp.io/share/w5BZG2v5
Flare
Trait method Filament\Actions\Concerns\InteractsWithActions::afterActionCalled has not been applied as App\Filament\Resources\TicketsResource\Pages\ViewTickets::afterActionCalled, because of collision with Filament\Resources\Pages\Concerns\InteractsWithRecord::afterActionCalled - The error occurred at http://localhost:8000/app/tickets/4
11 Replies
Im just trying to add header actions to my page
And i followed documentation. This leads me to believe that it could be a bug in filament
I need the record trait
Even if I do
It "fixes" just that method. Then it shows other methods as errors as well. The issue lies elsewhere....
Bump
Says it right there in the docs. Pages already have the trait applied, so you don’t need to add it yourself.
Well, if I remove
InteractsWithRecord
, then how can I get the record?what i'm saying you don't need is
InteractsWithActions
Weird, because I cant see the header actions
I fugured it out
might want to source dive a little to see how the pages are setup in the panels package. that should give you some better insight
its because I have a custom header view
So I need to add the
<x-filament-actions::modals />
there
right?
Still didnt work 🥲I went through the files and I found this in
vendor/filament/filament/resources/views/components/page/index.blade.php
:Solution
Solved!