'/admin/test'], function () { Route::put('news/workflow/{test}/{step}', 'TestAdminController@putWorkflow'); 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('news/workflow/{test}/{step}/{user}', 'TestController@getWorkflow'); Route::get('/', 'TestPublicController@index'); Route::get('/{slug?}', 'TestPublicController@show'); }); // Admin routes for test2 Route::group(['prefix' => '/admin/test'], function () { Route::put('news/workflow/{test2}/{step}', 'Test2AdminController@putWorkflow'); 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('news/workflow/{test2}/{step}/{user}', 'Test2Controller@getWorkflow'); Route::get('/', 'Test2PublicController@index'); Route::get('/{slug?}', 'Test2PublicController@show'); });