'/admin/test'], function () { Route::put('news/workflow/{test_module}/{step}', 'TestModuleAdminController@putWorkflow'); 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('news/workflow/{test_module}/{step}/{user}', 'TestModuleController@getWorkflow'); Route::get('/', 'TestModulePublicController@index'); Route::get('/{slug?}', 'TestModulePublicController@show'); });