tastyigniter/ti-ext-automation
Automate TastyIgniter tasks with scheduled workflows and event-based rules. Trigger actions like order updates, customer notifications, and system maintenance automatically, reducing manual work and improving operational consistency.
Event facade, Queue system, and Service Container. No major framework modifications needed.automation_rules table). Verify schema compatibility with existing migrations or seeders.OrderCreated) or framework events (e.g., Illuminate\Auth\Events\Registered)? Prefer domain events for better maintainability.Log::channel()).retry_after in Laravel Queues).Event facade.InvoicePaid").automation_rules table schema aligns with your migrations.cache:remember) for rule evaluation to reduce DB load.php artisan vendor:publish --provider="TastyIgniter\Automation\AutomationServiceProvider").config/automation.php (e.g., queue connections, rule storage).Automation::create([
'trigger' => 'order.created',
'actions' => [
['type' => 'notify', 'channel' => 'slack', 'message' => 'New order #{$event->id}'],
],
]);
EventServiceProvider or use automatic discovery:
protected $listen = [
'order.created' => [
'TastyIgniter\Automation\Listeners\DispatchAutomationRules',
],
];
schema_version column) to handle breaking changes.automation_executions table) with:
trigger syntax.event_id + rule_id).orders.*, users.*).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Queue worker crashes | Missed automations | Use supervisor + auto-restart. |
| Database connection drops | Rule evaluation fails | Implement retry logic with jitter. |
| Third-party API failures | Action (e.g., webhook) fails | Circuit breakers (e.g., spatie/fractal). |
| Rule syntax errors | Silent failures | Validation on rule creation. |
| Event payload corruption | Invalid rule execution | **Schema |
How can I help you explore Laravel packages today?