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');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #route #controller #group
ADD COMMENT
Topic
Name
3+9 =