group(function () { Route::patch('deal/actions/{action}', 'DealActionsController'); Route::patch('deal/action/{deal}/{action}', 'DealActionController'); Route::patch('deal/workflow/{deal}/{transition}', 'DealWorkflowController'); Route::resource('deal', 'DealResourceController'); }); // Guard routes for contact Route::prefix('{guard}/deal')->group(function () { Route::resource('contact', 'ContactResourceController'); }); // Guard routes for user Route::prefix('{guard}/deal')->group(function () { Route::resource('user', 'UserResourceController'); }); // Public routes for deal Route::get('deals/', 'DealPublicController@index'); Route::get('deal/{slug?}', 'DealPublicController@show');