From f30f4579e9d400c9d46e3fd5d7f1dade267eef25 Mon Sep 17 00:00:00 2001 From: olexus Date: Mon, 19 Dec 2016 11:05:06 +0300 Subject: [PATCH] Add Carbon localization support --- app/Providers/AppServiceProvider.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 4665bf6c7..1fbc1c44c 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -16,6 +16,7 @@ class AppServiceProvider extends ServiceProvider $imageMimes = ['image/png', 'image/bmp', 'image/gif', 'image/jpeg', 'image/jpg', 'image/tiff', 'image/webp']; return in_array($value->getMimeType(), $imageMimes); }); + Carbon::setLocale(Config::get('app.locale')); }