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: 2024-04-09 18:06:02 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();