yurizoom / moonshine-scheduling

MoonShine 的任务调度扩展

1.1.2 2024-08-13 02:27 UTC

This package is auto-updated.

Last update: 2024-09-13 02:43:48 UTC


README

用于管理 MoonShine 中任务规划器的 Web 界面。

截图

wx20170809-165644

安装

$ composer require yurizoom/moonshine-scheduling

配置

在 config/moonshine.php 文件中添加配置。

[
    'scheduling' => [
        // Автоматическое добавление в меню
        'auto_menu' => true,
    ]
]

添加到菜单

要将菜单添加到其他位置,请将以下代码插入到 app/Providers/MoonShineServiceProvider.php 文件中

use YuriZoom\MoonShineScheduling\Pages\SchedulingPage;

protected function menu(): array
    {
        return [
            ...
            
            MenuItem::make(
                static fn () => __('Scheduling'),
                new SchedulingPage(),
            ),
            
            ...
        ];
    }

许可证

MIT 许可证 (MIT).