App\Actions\ResetStars (or another) Example?
In the documentation (https://filamentphp.com/docs/3.x/infolists/actions#defining-a-infolist-component-action) the use of the "ResetStars" class is described as an example action, however I can't find anywhere the structure of this class as an example. Or am I missing something?
Solution:Jump to solution
It's just an invokable class. You can replace it with whatever code or function you like.
4 Replies
I have the EXACT same question. I want to build a header action for a table and I got stuck in the same place.
From reading the code, they're not part of Filament. They're your custom actions, hence the "1use App\Actions\Star" at the top.
Yeah it's just an example of something you might write, it's not referencing a real class.
Solution
It's just an invokable class. You can replace it with whatever code or function you like.