IMPORTANT! From Laravel 5.8 the framework is supporting Carbon 2 by default which has a better and nicer solution for localising dates therefor this package lost its purpose and is no longer supported.
Simple date localization for Laravel.
As you probably know Laravel has a built-in support for translations. It's very good if you want to display text in different languages. But what about dates?
Laravel uses Carbon for dates, but when you change the locale setting in config/app.php it won't affect the textual representation of dates, like diffForHumans or formatLocalized methods in Carbon. With this package you can synchronize your locale setting with Carbon and PHP's setlocale method.
Ok, I got it, now what?
Firstly you need to install the package with Composer:
After composer update add Terdelyi\LocaleDate\LocaleDateServiceProvider::class to the providers array in config/app.php.
Is there anything more what I should know?
Because different systems (MacOs, Windows, Linux) have different naming schemes for locales, date formatting uses a locales.php config file to override them. You can easily publish this config file into your application: