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:
It's just an invokable class. You can replace it with whatever code or function you like.
Jump to solution
4 Replies
Emaz
Emaz14mo ago
I have the EXACT same question. I want to build a header action for a table and I got stuck in the same place.
Jeff
Jeff14mo ago
From reading the code, they're not part of Filament. They're your custom actions, hence the "1use App\Actions\Star" at the top.
Malcolm Turntbull
Yeah it's just an example of something you might write, it's not referencing a real class.
Solution
Dennis Koch
Dennis Koch14mo ago
It's just an invokable class. You can replace it with whatever code or function you like.
Want results from more Discord servers?
Add your server