雪软 / oascheduling
open-admin 的任务调度扩展
0.01
2023-10-02 15:06 UTC
Requires
- php: >=7.0.0
- snowsoft/open-admin: ~v0.01
Requires (Dev)
- laravel/laravel: ~5.5
- phpunit/phpunit: ~6.0
This package is not auto-updated.
Last update: 2024-09-17 17:59:04 UTC
README
屏幕截图
安装
$ composer require snowsoft/oascheduling
$ php artisan admin:import 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')->dailyAt('02:00'); } }
您可以在调度面板中找到这些任务。
调试
如果控制台显示错误,如:sh: : command not found
,请尝试在您的 .env 文件中添加以下内容:PHP_BINARY=/path/to/your/php/binaray/
许可证
在 MIT 许可证 (MIT) 下许可。