'admin/test'], function () { Route::resource('test_module', 'TestModuleAdminController'); }); // User routes for test_module Route::group(['prefix' => 'user/test'], function () { Route::resource('test_module', 'TestModuleUserController'); }); // Public routes for test_module Route::group(['prefix' => 'tests'], function () { Route::get('/', 'TestModulePublicController@index'); Route::get('/{slug?}', 'TestModulePublicController@show'); });