Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Rename route resource in laravel

Route::resource('product', 
    AppHttpControllersAPIAdminProductController::class, [
    'names' => [
        'index' => 'admin.product.index', 
        'store' => 'admin.product.store', 
        'update' => 'admin.product.update', 
        'destroy' => 'admin.product.delete'
    ]
])->except(['edit', 'create']);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Rename #route #resource #laravel
ADD COMMENT
Topic
Name
6+5 =