Move to better spot

This commit is contained in:
James Cole 2016-01-08 20:48:34 +01:00
parent 84ce9bc94b
commit e622774775

View File

@ -30,17 +30,6 @@ class Authenticate
}
}
// if logged in, set user language:
$pref = Preferences::get('language', env('DEFAULT_LANGUAGE', 'en_US'));
App::setLocale($pref->data);
Carbon::setLocale(substr($pref->data, 0, 2));
$locale = explode(',', trans('config.locale'));
$locale = array_map('trim', $locale);
setlocale(LC_TIME, $locale);
setlocale(LC_MONETARY, $locale);
return $next($request);
}
}