Artisan Commands
Workflowable provides several Artisan commands for managing workflows from the CLI.
workflowable:list
List all workflow definitions.
php artisan workflowable:list
php artisan workflowable:list --active
php artisan workflowable:list --inactiveDisplays a table with ID, name, version, active status, step count, instance count, and creation date.
workflowable:status
Show workflow instance details or list instances.
# Show a specific instance
php artisan workflowable:status 42
# List instances with filters
php artisan workflowable:status --status=failed
php artisan workflowable:status --workflow=order_approval
php artisan workflowable:status --limit=20workflowable:retry
Retry a failed workflow instance from its current step.
php artisan workflowable:retry 42workflowable:schedule
Evaluate CRON-based workflow schedules and dispatch any that are due.
php artisan workflowable:scheduleTypically registered in your scheduler to run every minute:
Schedule::command('workflowable:schedule')->everyMinute();workflowable:verify
Verify state integrity of workflow instances by replaying stored events.
php artisan workflowable:verifyworkflowable:versions
List all versions of a workflow definition.
php artisan workflowable:versions order_approvalDisplays version number, active status, step count, instance count, creation date, and created by.
make:workflow-action
Scaffold a new workflow action handler class.
php artisan make:workflow-action ProcessOrderCreates app/Workflows/Actions/ProcessOrder.php with a handle(ExecutionContext $context): array method.
make:workflow-conditional
Scaffold a new workflow conditional handler class.
php artisan make:workflow-conditional IsHighValueCreates app/Workflows/Conditionals/IsHighValue.php implementing the Conditional interface with an evaluate(ExecutionContext $context): bool method.
make:workflow-event
Scaffold a new workflow event DTO class.
php artisan make:workflow-event OrderSubmittedCreates app/Workflows/Events/OrderSubmitted.php extending WorkflowEvent with an empty constructor ready for your typed properties.