Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

change the method name in resource in laravel

Route::resource('my/path/to/whereever/I/like', 'MyController', [
    'names' => [
        'index' => 'my_route_base_name.index',
        'edit' => 'my_route_base_name.edit',
        'create' => 'my_route_base_name.create',
        etc...
    ],
])
 
PREVIOUS NEXT
Tagged: #change #method #resource #laravel
ADD COMMENT
Topic
Name
1+1 =