'{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { include('routes.php'); } ); } // Workflow routes for legal Route::prefix('{guard}/legal')->group(function () { Route::get('/workflow/{legal}/{user}', 'LegalWorkflowController@get') ->name('litecms.legal.workflow'); Route::post('/workflow/{legal}/{user}', 'LegalWorkflowController@post'); Route::get('/action/{legal}/{user}', 'LegalActionController@get') ->name('litecms.legal.action'); Route::post('/action/{legal}/{user}', 'LegalActionController@post'); }); // Workflow routes for legal_case Route::prefix('{guard}/legal_case')->group(function () { Route::get('/workflow/{legal_case}/{user}', 'LegalCaseWorkflowController@get') ->name('litecms.legal.workflow'); Route::post('/workflow/{legal_case}/{user}', 'LegalCaseWorkflowController@post'); Route::get('/action/{legal_case}/{user}', 'LegalCaseActionController@get') ->name('litecms.legal.action'); Route::post('/action/{legal_case}/{user}', 'LegalCaseActionController@post'); });