Localisation des formats de date
This commit is contained in:
parent
371de51900
commit
52bcbe582d
1 changed files with 8 additions and 0 deletions
|
|
@ -26,5 +26,13 @@ class AppServiceProvider extends ServiceProvider
|
|||
if($this->app->environment("prod")){
|
||||
\URL::forceScheme("https");
|
||||
}
|
||||
|
||||
if (config('app.env') !== 'local') {
|
||||
setlocale(LC_TIME, config('app.locale') . "_" . strtoupper(config('app.locale')) . '.utf8');
|
||||
}
|
||||
|
||||
if (config('app.env') === 'local') {
|
||||
setlocale(LC_TIME, strtoupper(config('app.locale')) . "_" . config('app.locale') . '.utf8');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue