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