Closed michaeltintiuc closed 6 years ago
I have the same...
And I have this error
Почему бы не закрыть вопрос ?
It happens again with latest Carbon
I have the same problem with latest Carbon
Should be ok now in dev-master
Looks good, if anyone could test this and provide a solid confirmation?
Я сейчас попробовал.
Установил пакет, добавил его в config/app.php
Подключил в модели
namespace App\Models; use Carbon\Carbon; use \Laravelrus\LocalizedCarbon\Traits\LocalizedEloquentTrait; class Article extends Model { use LocalizedEloquentTrait; ..... }
И в blade пишу
{{ $article->created_at->format('d M Y') }}
Дата выводится на англ - 23 Mar 2018
Может я не так что делаю?
@mrKorg Как этот вопрос относится к обсуждаемому багу? А вообще, есть метод formatLocalized
Спасибо, работает отлично!
Closing as fixed. I wish the dev would have mentioned this issue in the commit though.