group(function () { Route::patch('account/actions/{action}', 'AccountActionsController'); Route::patch('account/action/{account}/{action}', 'AccountActionController'); Route::resource('account', 'AccountResourceController'); }); // Guard routes for contact Route::prefix('{guard}/contact')->group(function () { Route::patch('contact/actions/{action}', 'ContactActionsController'); Route::patch('contact/action/{contact}/{action}', 'ContactActionController'); Route::patch('contact/workflow/{contact}/{transition}', 'ContactWorkflowController'); Route::resource('contact', 'ContactResourceController'); }); // Public routes for contact Route::get('contacts/', 'ContactPublicController@index'); Route::get('contact/{slug?}', 'ContactPublicController@show');