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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -