📏Route
to generate a route for current resource to pass it to your action you can do that by just 1 command
Using
to create a new route inside your resource class you can use this command
It will ask you to input route name and route type, route method, route class, target class 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 route class on ResourceName/Components.php
trait like this
you will show a new route when you run php artisan route:list
Last updated