group(function () { Route::resource('job', 'JobResourceController'); }); // Guard routes for location Route::prefix('{guard}/recruit')->group(function () { Route::resource('location', 'LocationResourceController'); }); // Guard routes for job_application Route::prefix('{guard}/recruit')->group(function () { Route::resource('job_application', 'JobApplicationResourceController'); }); // Public routes for recruit Route::get('recruits/', 'RecruitPublicController@index'); Route::get('recruit/{slug?}', 'RecruitPublicController@show');