group(function () { Route::resource('job', 'JobResourceController'); }); // Public routes for job Route::get('jobs/', 'JobPublicController@index'); Route::get('job/{slug?}', 'JobPublicController@show'); if (Trans::isMultilingual()) { Route::group( [ 'prefix' => '{trans}', 'where' => ['trans' => Trans::keys('|')], ], function () { // Guard routes for job Route::prefix('{guard}/job')->group(function () { Route::resource('job', 'JobResourceController'); }); // Public routes for job Route::get('jobs/', 'JobPublicController@index'); Route::get('job/{slug?}', 'JobPublicController@show'); } ); }