composer require geniusts/laravel-hijri-datesAdd the package to your application service providers in config/app.php file.
'providers' => [
...
/**
* Third Party Service Providers...
*/
GeniusTS\LaravelHijri\HijriDatesServiceProvider::class,
], php artisan vendor:publish --provider="GeniusTS\LaravelHijri\HijriDatesServiceProvider" --tag=configUsage documentation available in hijri-dates repository.
-
Add new language:
- create new directory under
resources/lang/vendor/hijri-datesin your application files. - Add
dates.phpfile under the new directory. it should return array with the same structure of package translation files.
- create new directory under
-
change default translation:
the following function export default translation to resources/lang/vendor/hijri-dates in your application files.
php artisan vendor:publish --provider="GeniusTS\LaravelHijri\HijriDatesServiceProvider" --tag=translationThis package is free software distributed under the terms of the MIT license.