Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

route group controller laravel

use AppHttpControllersOrderController;
 
Route::controller(OrderController::class)->group(function () {
    Route::get('/orders/{id}', 'show');
    Route::post('/orders', 'store');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #route #group #controller #laravel
ADD COMMENT
Topic
Name
5+6 =