xn / crontab
laravel-admin的Crontab扩展
dev-master
2024-05-02 14:36 UTC
Requires
- php: >=7.0.0
- xn/laravel-admin: >=1.0
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-09-07 10:34:42 UTC
README
安装
composer require xn/crontab
php artisan migrate
配置
在config/admin.php
配置文件的extensions
配置部分,添加这个扩展的配置
'extensions' => [
'crontab' => [
'enable' => true,
]
]
在服务器上配置crontab
crontab -e
* * * * * php /your_web_dir/artisan autotask:run >> /dev/null 2>&1
访问
https://your domain/admin/crontabs #定時任務列表
https://your domain/admin/crontab-logs #定時任務日誌列表
许可
许可协议:[MIT许可 (MIT)](https://gitlab.com/xn_workshop/ext-crontab/-/blob/HEAD/LICENSE)。