'{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { include('routes.php'); } ); } // Workflow routes for campaign Route::prefix('{guard}/campaign')->group(function () { Route::get('/workflow/{campaign}/{user}', 'CampaignWorkflowController@get') ->name('bixo.social.workflow'); Route::post('/workflow/{campaign}/{user}', 'CampaignWorkflowController@post'); Route::get('/action/{campaign}/{user}', 'CampaignActionController@get') ->name('bixo.social.action'); Route::post('/action/{campaign}/{user}', 'CampaignActionController@post'); }); // Workflow routes for user Route::prefix('{guard}/user')->group(function () { Route::get('/workflow/{user}/{user}', 'UserWorkflowController@get') ->name('bixo.social.workflow'); Route::post('/workflow/{user}/{user}', 'UserWorkflowController@post'); Route::get('/action/{user}/{user}', 'UserActionController@get') ->name('bixo.social.action'); Route::post('/action/{user}/{user}', 'UserActionController@post'); });