doriiaan/filament-translatable-menu-builder
最新稳定版本:v1.1.1
Composer 安装命令:
composer require doriiaan/filament-translatable-menu-builder
包简介
Create and manage translatable menus and menu items. Fork of datlechin/filament-menu-builder.
README 文档
README
This Filament package allows you to create and manage translatable menus in your Filament application.
This package is a fork from datlechin/filament-menu-builder and integrates Astrotomic/laravel-translatable for translations with CactusGalaxy/FilamentAstrotomic for translations tabs.
Installation
You can install the package via composer:
composer require doriiaan/filament-translatable-menu-builder
You need to publish the migrations and run them:
php artisan vendor:publish --tag="filament-translatable-menu-builder-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="filament-translatable-menu-builder-config"
Optionally, if you want to customize the views, you can publish them with:
php artisan vendor:publish --tag="filament-translatable-menu-builder-views"
This is the contents of the published config file:
return [ 'tables' => [ 'menus' => 'menus', 'menu_tarnslations' => 'menu_translations', 'menu_items' => 'menu_items', ], ];
Add the plugin to AdminPanelProvider:
use Doriiaan\FilamentTranslatableMenuBuilder\FilamentTranslatableMenuBuilderPlugin; $panel ... ->plugin(FilamentTranslatableMenuBuilderPlugin::make())
Usage
If one day someone uses this package, I could fill in this section and make the package as customizable as: datlechin/filament-menu-builder.
Custom links don't work.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 98
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-06-29