visual-ideas/moonshine-laravel-translations 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Latest Version on Packagist Total Downloads

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-06