batrox/laravel-hijri-dates
最新稳定版本:v1.08
Composer 安装命令:
composer require batrox/laravel-hijri-dates
包简介
Hijri dates package for Laravel
README 文档
README
Installation
Composer
composer require geniusts/laravel-hijri-dates
Service Provider
Add the package to your application service providers in config/app.php file.
'providers' => [ ... /** * Third Party Service Providers... */ GeniusTS\LaravelHijri\HijriDatesServiceProvider::class, ],
Config File
php artisan vendor:publish --provider="GeniusTS\LaravelHijri\HijriDatesServiceProvider" --tag=config
Usage
Usage documentation available in hijri-dates repository.
translation
-
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=translation
License
This package is free software distributed under the terms of the MIT license.
统计信息
- 总下载量: 56
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-02-26