›
byrcsc/laravel-checklist · 1.x
Install Laravel Checklist, publish its migrations, and configure storage before accepting evidence.
Laravel Checklist installs through Composer and Laravel package discovery. The common setup publishes its migrations and keeps the default table names.
composer require byrcsc/laravel-checklistLaravel discovers
ByRcsc\LaravelChecklist\ChecklistServiceProvider through the package's
Composer metadata.
php artisan vendor:publish --tag="checklist-migrations"
php artisan migrateThe publish tag writes seven migrations in dependency order. They create ten tables and add scoring, schedule, notification stamp, and action-head columns to the checklist table.
Publish the configuration first when you need different table names:
php artisan vendor:publish --tag="checklist-config"
php artisan vendor:publish --tag="checklist-migrations"
php artisan migrateThe migrations and models read the same checklist.table_names map. Changing
a name after migration requires an application migration to rename the table.
Evidence uses the local filesystem disk by default. Point it at a private
disk in production:
CHECKLIST_EVIDENCE_DISK=s3The package writes files below
checklists/{checklist}/responses/{response}/. It records the disk and path,
but it does not expose download routes. Build authorized or temporary URLs in
your application.
Shipped notifications use the mail and database channels. Create Laravel's
notifications table if your application does not already have one:
php artisan make:notifications-table
php artisan migrateSet CHECKLIST_NOTIFICATIONS=false when your application will listen to domain
events and send its own notifications. Disabling shipped notifications does
not disable events or audit history.
Add the generator to routes/console.php when your application uses schedules,
due-soon notifications, or overdue notifications:
use Illuminate\Support\Facades\Schedule;
Schedule::command('checklist:generate-due')->everyFifteenMinutes();The command is safe to run more often. Database claims prevent concurrent runs from generating the same occurrence or announcing the same transition twice.
php artisan vendor:publish --tag="checklist-translations"This publishes the English notification lines. Publishing them is optional; the package loads its own copy otherwise.