zwping/scheduling

Task scheduling extension for dcat-admin

1.0.3 2024-04-23 06:04 UTC

This package is auto-updated.

Last update: 2024-11-23 07:32:32 UTC


README

截图

main run

安装

  1. composer require zwping/scheduling
  2. 扩展中更新&启用
  3. 配置用户菜单&权限
  4. 打开 http://your-host/admin/scheduling

app/Console/Kernel.php中添加一些定时任务

class Kernel extends ConsoleKernel
{
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('inspire')->everyTenMinutes();
        
        $schedule->command('route:list')
            ->back
            ->dailyAt('02:00');
    }
}

打开http://your-host/admin/scheduling, 可以看见这些定时任务