group(function () { Route::get('team/report/{report}', 'TeamReportController'); Route::patch('team/actions/{action}', 'TeamActionsController'); Route::patch('team/action/{team}/{action}', 'TeamActionController'); Route::patch('team/workflow/{team}/{transition}', 'TeamWorkflowController'); Route::resource('team', 'TeamResourceController'); }); // Guard routes for user Route::prefix('{guard}/team')->group(function () { Route::get('user/report/{report}', 'UserReportController'); Route::patch('user/actions/{action}', 'UserActionsController'); Route::patch('user/action/{user}/{action}', 'UserActionController'); Route::patch('user/workflow/{user}/{transition}', 'UserWorkflowController'); Route::resource('user', 'UserResourceController'); }); // Public routes for team Route::get('teams/', 'TeamPublicController@index'); Route::get('team/{slug?}', 'TeamPublicController@show');