Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

grouping routes based on controller laravel

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 #laravel
ADD COMMENT
Topic
Name
7+5 =