zwping / scheduling
Task scheduling extension for dcat-admin
1.0.3
2024-04-23 06:04 UTC
Requires
- php: >=7.1.0
- dcat/laravel-admin: ~2.0
This package is auto-updated.
Last update: 2024-11-23 07:32:32 UTC
README
截图
安装
composer require zwping/scheduling
- 扩展中更新&启用
- 配置用户菜单&权限
- 打开 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
, 可以看见这些定时任务