open-developer-ext / scheduling
open-developer 的任务调度扩展
v1.0.0
2023-08-13 21:49 UTC
Requires
- php: >=7.0.0
- open-developer/open-developer: >=1.0.4
Requires (Dev)
- laravel/laravel: ~5.5
- phpunit/phpunit: ~6.0
README
open-developer 的调度任务管理器
laravel 中管理任务调度的网页界面。
截图
安装
composer require open-developer-ext/scheduling
php artisan developer:import scheduling
打开 http://your-host/developer/scheduling
。
在 app/Console/Kernel.php
中尝试添加如下调度任务:
class Kernel extends ConsoleKernel { protected function schedule(Schedule $schedule) { $schedule->command('inspire')->everyTenMinutes(); $schedule->command('route:list')->dailyAt('02:00'); } }
你可以在调度面板中找到这些任务。
调试
如果控制台显示错误: sh: : command not found
尝试在你的 .env 文件中添加以下内容: PHP_BINARY=/path/to/your/php/binaray/