group(function () { Route::patch('legal/actions/{action}', 'LegalActionsController'); Route::patch('legal/action/{legal}/{action}', 'LegalActionController'); Route::patch('legal/workflow/{legal}/{transition}', 'LegalWorkflowController'); Route::resource('legal', 'LegalResourceController'); }); // Guard routes for legal_case Route::prefix('{guard}/legal')->group(function () { Route::patch('legal_case/actions/{action}', 'LegalCaseActionsController'); Route::patch('legal_case/action/{legal_case}/{action}', 'LegalCaseActionController'); Route::patch('legal_case/workflow/{legal_case}/{transition}', 'LegalCaseWorkflowController'); Route::resource('legal_case', 'LegalCaseResourceController'); }); // Public routes for legal Route::get('legals/', 'LegalPublicController@index'); Route::get('legal/{slug?}', 'LegalPublicController@show');