›
byrcsc/laravel-checklist · 1.x
Reference checklist generation and audit verification commands, output, options, and exit behavior.
The package registers two Artisan commands. One creates checklists from due schedules; the other verifies the hash chain behind the audit history.
checklist:generate-duephp artisan checklist:generate-dueThe command uses the current application time to:
Example summary:
Created 2 checklist(s), skipped 1 schedule(s). Announced 3 due soon and 1 overdue.A due schedule without a published template version prints a warning and keeps its due time. Overlap-policy skips count in the skipped total.
The command has no arguments or options and returns success after processing. Schedule it every fifteen minutes for typical use.
checklist:verifyphp artisan checklist:verify
php artisan checklist:verify --checklist=42
php artisan checklist:verify -v| Option | Meaning |
|---|---|
--checklist= | Verify only the matching checklist identifier. |
-v | Print an intact line for each verified checklist. |
The command returns failure when any chain is broken or when --checklist
matches no row. An empty database without a filter returns success with a
warning.
Example failure:
Checklist 42: BROKEN at action #109 (position 7) - its contents no longer hash to the value stored with it.
1 of 1 checklist(s) have a broken audit chain.use Illuminate\Support\Facades\Schedule;
Schedule::command('checklist:generate-due')->everyFifteenMinutes();
Schedule::command('checklist:verify')->daily();The package registers commands but does not register application schedules.