'admin/test'], function () { Route::resource('test', 'TestAdminController'); }); // User routes for test Route::group(['prefix' => 'user/test'], function () { Route::resource('test', 'TestUserController'); }); // Public routes for test Route::group(['prefix' => 'tests'], function () { Route::get('/', 'TestPublicController@index'); Route::get('/{slug?}', 'TestPublicController@show'); }); // Admin routes for test2 Route::group(['prefix' => 'admin/test'], function () { Route::resource('test2', 'Test2AdminController'); }); // User routes for test2 Route::group(['prefix' => 'user/test'], function () { Route::resource('test2', 'Test2UserController'); }); // Public routes for test2 Route::group(['prefix' => 'tests'], function () { Route::get('/', 'Test2PublicController@index'); Route::get('/{slug?}', 'Test2PublicController@show'); });