🔥Action
Last updated
Last updated
every resource has a lot of actions, this action can be url
or route
, or modal
that's mean you can send a direct request by just clicking an action button or opening a modal to send data to the backend on the selected route.
to create a new action inside your resource class you can use this command
It will ask you to input action name and the resource class name and the module name and it will generate an action class for you like this
set your data and define the action class on ResourceName/Components.php
trait like this
you will get a button in the header of your resource