Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

grouping routes based on controller

use AppHttpControllersAdminAdminController;
Route::controller(AdminController::class)->group(function(){
    Route::get('admin/dashboard', 'dashboard');
    Route::get('admin/test', 'test');
});
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #grouping #routes #based #controller
ADD COMMENT
Topic
Name
3+4 =