Unverified Commit abaf3267 authored by KaMe's avatar KaMe Committed by GitHub

Set Carbon locale

update carbon locale on boot.
parent b3f4a311
......@@ -17,6 +17,7 @@ class AppServiceProvider extends ServiceProvider
{
Schema::defaultStringLength(191);
Carbon\Carbon::setLocale(config('app.locale'));
Carbon::serializeUsing(function ($carbon) {
return $carbon->format('d/m/y H:i:s');
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment