Skip to content

Commit

Permalink
Set Carbon locale
Browse files Browse the repository at this point in the history
update carbon locale on boot.
  • Loading branch information
kamekun authored May 8, 2018
1 parent b3f4a31 commit abaf326
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public function boot()
{
Schema::defaultStringLength(191);

Carbon\Carbon::setLocale(config('app.locale'));
Carbon::serializeUsing(function ($carbon) {
return $carbon->format('d/m/y H:i:s');
});
Expand Down

0 comments on commit abaf326

Please sign in to comment.