Purchase Request Approval
PurchaseRequest → Manager approval before converting to a purchase order → Controlled purchasing flow
Model-first approval workflow engine for Laravel & Filament
Add approvals, workflow tasks, reject flows, and audit trails to existing Eloquent models.
Walk through refund and purchase-request approvals on real business objects — no local install required.
use DbflowLabs\Core\Traits\HasWorkflow;
use DbflowLabs\Core\DBFlow;
class Refund extends Model { use HasWorkflow; }
DBFlow::start('refund_dispute_approval', $refund);
Workflow key must match a published definition — refund example.
How it works
Workflows attach to Eloquent models. DBFlow manages instances, tasks, and audit trails.
Eloquent Model
Your domain record
Workflow Definition
Steps & transitions
Workflow Instance
Run on this record
Pending Task
Assigned approver
Approve / Reject
Actor decision
Business Continues
Your app logic runs
Philosophy
Approval logic belongs on the business objects your app already owns.
Practical value
Tasks, reject paths, audit trails, permissions, and versioning add up fast.
Use cases
Real Laravel business objects—not abstract process diagrams.
PurchaseRequest → Manager approval before converting to a purchase order → Controlled purchasing flow
Refund → Finance review before refunding a customer → Safer refund handling
ExpenseClaim → Manager and finance review → Cleaner internal approvals
Vendor → Onboarding review before activation → Safer supplier management
Order → Approval when amount exceeds a threshold → Controlled high-risk sales
InventoryAdjustment → Supervisor approval before stock changes → Safer inventory operations
Laravel-native
Atomic task actions, append-only audit logs, WorkflowHooks, and optional Filament UI.
Eloquent integration docs →Product layers
Core runs workflows. Filament adds admin UI. Pro helps design definitions.
Product overview →dbflowlabs/filament
Free Filament UI for workflow tasks, timelines, resource actions and workflow instance pages.
Filament UI docs →dbflowlabs/filament-pro
Visual builder for workflow definitions. Private preview.
Pro Builder preview →Public alpha
Core and Filament Standard are in public alpha — ready for demos, staging pilots, and integration feedback.
Learn & explore
Composer, migrations, and first panel pages.
Open →End-to-end approval workflow on an Eloquent model.
Open →Refund, purchase request, and common approval patterns.
Open →Structured learning path from install to deeper guides.
Open →FAQ
No. DBFlow is a model-first approval workflow engine for Laravel Eloquent models—not a BPMN server or low-code suite.
No. Core runs workflows without Filament. Filament Standard adds My Tasks, timelines, and resource actions.
No. Pro Builder is optional visual authoring. Core and Filament Standard are enough to evaluate.
Yes. Pick one business object, add HasWorkflow, and expand when it proves useful.
Yes. DBFlow manages workflow state and audit trails. Your services and rules stay in control.
Public alpha. Ready for evaluation and staging pilots—not a production maturity promise.
Workflow state lives in separate dbflow_workflow_* tables, separate from your domain models.
Try the live demo, install Core, or read the roadmap.