lxlang/laravel-schedule-info

A command to output your current laravel schedule in a human readable format.

0.1.0 2020-07-09 08:45 UTC

This package is auto-updated.

Last update: 2020-08-09 09:07:19 UTC


README

Description

A command to output your current laravel schedule in a human readable format.

Installation

composer require lxlang/laravel-schedule-info

Usage

Run ./artisan schedule:info

+------------+-------------------------+----------------------+-------------------+
| expression | command                 | when                 | next_due          |
+------------+-------------------------+----------------------+-------------------+
| 0 0 * * *  | inspire                 | Every day at 12:00am | 9 hours from now  |
+------------+-------------------------+----------------------+-------------------+

Code-Access

You can use ScheduleInfoReport to generate a result set, with which a custom view can be generated to include this into views or other reports.

$report = app(ScheduleInfoReport::class);

/** @var Collection|ScheduleInfo[] $result */
$result = $report->generate();