visual-ideas/moonshine-laravel-translations
最新稳定版本:1.1.0
Composer 安装命令:
composer require visual-ideas/moonshine-laravel-translations
包简介
Manage Laravel translation files with MoonShine admin panel
关键字:
README 文档
README
Installation
You can install the package via composer:
composer require visual-ideas/moonshine-laravel-translations
You must run the migrations with:
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --provider="VI\MoonShineLaravelTranslations\Providers\MoonShineLaravelTranslationsServiceProvider" --tag="config"
This is the contents of the published config file:
TODO Config info
Add new MoonShine resource to your MoonShineServiceProvider file, like this:
MenuItem::make('Переводы', new \VI\MoonShineLaravelTranslations\Resources\MoonShineLaravelTranslationResource()) ->translatable() ->badge(fn()=>cache()->remember('moonshine_laravel_translations_changed_count', now()->addMinute(), fn()=>\VI\MoonShineLaravelTranslations\Models\MoonshineLaravelTranslation::getCountChanged())) ->icon('heroicons.outline.language'),
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-06