I output date when post was created on Laravel blog page like that
{{ strftime('%d %b %Y', strtotime($item->created_at) ) }}
I wan to see it in format 01 Сен 2015 with russian name of month, but I have always that in english version 01 Sep 2015.
I checked that locale is russian, because {{ Config::get('app.locale') }}
in blade shows me ru
on the page.
So why I see month name in english?
I see Russian only when I put in AppServiceProvider following
public function boot()
{
setlocale(LC_ALL, 'ru_RU.utf8');
}
I tried also with Carbon {{$item->created_at->format('d M Y')}}
, but again output in english. And adding string Carbon::setLocale(config('app.locale'))
or Carbon::setLocale('ru')
in AppServiceProvider doesn't help.
What is the problem?