Skip to content
Advertisement

How get a day with a carbon by German in Laravel?

How get a day with a carbon by German in Laravel?

Try:

 return $item->formatLocalized('%A, %d.%m.%Y %H:%M');

Need:

Montag, 17.04.2017 10:00

Advertisement

Answer

Did you put this on bootstrap/app.php

setlocale(LC_TIME, 'German');
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement