php - Laravel 5 - How to setlocale Carbon time to German -
i using carbon, , don't know how change output german time format.
should make change in controller or in view?
now want dayname germanstring. that's default output:
{{ $game->start_at }}
when change in view
{{ $game->start_at->format('l') }}
i dayname not in german.
your answer here think. remember check documentation when in trouble :d
http://carbon.nesbot.com/docs/#api-localization
setlocale(lc_time, 'german'); $dt = carbon::now(); echo $dt->formatlocalized('%a %d %b %y');
Comments
Post a Comment