config/workflows.php file.
Publishing Configuration
Publish the configuration file to customize it:config/workflows.php in your Laravel application.
Configuration Options
Workflows Folder
The directory within your application where workflow classes are stored. Relative to the app directory.
Database Models
Customize the Eloquent models used for persisting workflow data.The model class for workflow instances.
The model class for workflow exceptions.
The model class for activity execution logs.
The model class for workflow signals.
The model class for workflow timers.
Database Tables
The database table name for storing parent-child workflow relationships.
Serialization
The serializer class used to serialize and deserialize workflow data. The Y serializer provides efficient serialization with support for complex PHP types.
Data Retention
How long to keep completed workflow data before it can be pruned. Uses PHP’s strtotime compatible format.Examples:
'7 days''2 weeks''3 months''1 year'
Webhook Configuration
Configure webhook endpoints for external integrations.Webhook Route
The base route path for webhook endpoints. Can be overridden with the Environment Variable:
WORKFLOW_WEBHOOKS_ROUTE environment variable.Webhook Authentication
The authentication method for webhook requests. Can be overridden with the Environment Variable:
WORKFLOW_WEBHOOKS_AUTH_METHOD environment variable.Options:none- No authentication (not recommended for production)signature- HMAC signature verificationtoken- Bearer token authenticationcustom- Custom authentication class
Signature Authentication
Used whenwebhook_auth.method is set to signature.
The HTTP header containing the webhook signature. Can be overridden with the Environment Variable:
WORKFLOW_WEBHOOKS_SIGNATURE_HEADER environment variable.The secret key used to generate and verify webhook signatures. Should be set via the Environment Variable:
WORKFLOW_WEBHOOKS_SECRET environment variable.Token Authentication
Used whenwebhook_auth.method is set to token.
The HTTP header containing the authentication token. Can be overridden with the Environment Variable:
WORKFLOW_WEBHOOKS_TOKEN_HEADER environment variable.The bearer token expected in webhook requests. Should be set via the Environment Variable:
WORKFLOW_WEBHOOKS_TOKEN environment variable.Custom Authentication
Used whenwebhook_auth.method is set to custom.
The fully qualified class name of a custom webhook authentication handler. Can be overridden with the Environment Variable:
WORKFLOW_WEBHOOKS_CUSTOM_AUTH_CLASS environment variable.Complete Configuration Example
Here’s the complete default configuration file:Environment Variables Summary
| Variable | Description | Default |
|---|---|---|
WORKFLOW_WEBHOOKS_ROUTE | Webhook base route | webhooks |
WORKFLOW_WEBHOOKS_AUTH_METHOD | Authentication method | none |
WORKFLOW_WEBHOOKS_SIGNATURE_HEADER | Signature header name | X-Signature |
WORKFLOW_WEBHOOKS_SECRET | Signature secret key | - |
WORKFLOW_WEBHOOKS_TOKEN_HEADER | Token header name | Authorization |
WORKFLOW_WEBHOOKS_TOKEN | Bearer token | - |
WORKFLOW_WEBHOOKS_CUSTOM_AUTH_CLASS | Custom auth class | - |
WorkflowOptions
In addition to global configuration, you can specify per-workflow options using theWorkflowOptions class:
The queue connection to use for this specific workflow. If null, uses the default queue connection.
The queue name to use for this specific workflow. If null, uses the default queue.