Purchase Request Approval
PurchaseRequest → Manager approval before converting to a purchase order → Controlled purchasing flow
Model-first approval workflow engine for Laravel & Filament
Bind workflows to PurchaseRequest, Refund, or any Eloquent model—without a BPM server.
Walk through refund and purchase-request approvals on real business objects — no local install required.
<?php
namespace App\Models;
use DbflowLabs\Core\Traits\HasWorkflow;
use Illuminate\Database\Eloquent\Model;
class RefundDispute extends Model
{
use HasWorkflow;
}
use DbflowLabs\Core\DBFlow;
DBFlow::start('refund_dispute_approval', $dispute, $user);
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.
dbflowlabs/filament
Free Filament UI for workflow tasks, timelines, resource actions and workflow instance pages.
dbflowlabs/filament-pro
Visual workflow builder for definitions. Commercial license.
1.1 stable
Core and Filament Standard are on 1.1 — SLA, delegation, reliable actions, and outbound webhooks on the frozen 1.0 runtime API. DBFlow Pro is a commercial 1.1 visual builder aligned with the same release line.
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.
Core and Filament Standard are 1.1 stable on Packagist. DBFlow Pro is a commercial 1.1 visual builder.
Workflow state lives in separate dbflow_workflow_* tables, separate from your domain models.
Try the live demo, install Core, or explore Pro.