lxlang / laravel-schedule-info
一个命令,以人类可读的格式输出您的当前laravel调度。
0.1.0
2020-07-09 08:45 UTC
Requires
- php: >=7.4
- dragonmantank/cron-expression: ^2.0
- illuminate/console: ^5.5|^6|^7
- illuminate/support: ^5.5|^6|^7
- lorisleiva/cron-translator: ^0.1.1
Requires (Dev)
- illuminate/container: ^7.19
- phpunit/phpunit: ^9.2
- squizlabs/php_codesniffer: ^3
This package is auto-updated.
Last update: 2024-09-09 19:00:24 UTC
README
描述
一个命令,以人类可读的格式输出您的当前laravel调度。
安装
composer require lxlang/laravel-schedule-info
使用
运行 ./artisan schedule:info
+------------+-------------------------+----------------------+-------------------+
| expression | command | when | next_due |
+------------+-------------------------+----------------------+-------------------+
| 0 0 * * * | inspire | Every day at 12:00am | 9 hours from now |
+------------+-------------------------+----------------------+-------------------+
代码访问
您可以使用ScheduleInfoReport
生成结果集,然后可以生成自定义视图,将其包含在视图或其他报告中。
$report = app(ScheduleInfoReport::class); /** @var Collection|ScheduleInfo[] $result */ $result = $report->generate();