Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel 9 route controller group

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