Add Carbon localization support

This commit is contained in:
olexus 2016-12-19 11:05:06 +03:00
parent 286f9b0c7d
commit f30f4579e9

View File

@ -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'));
}