Repository navigation
3.0.0
🚀 Brain 3.0.0 — Workflow/Action Naming
Brain 3.0.0 introduces Workflow and Action as the primary class names, replacing Process and Task. The old names remain fully functional as deprecated aliases.
New Concepts
| Old Name | New Name | Base Class |
|---|---|---|
| Process | Workflow | Brain\Workflow |
| Task | Action | Brain\Action |
New Features
Workflowclass — Orchestrates a sequence of actions (replacesProcess)Actionclass — A single unit of work (replacesTask)brain:make:workflow— Scaffold a new Workflow classbrain:make:action— Scaffold a new Action classbrain:migrate— Automatically migrate your codebase from Process/Task to Workflow/Action naming- Renames directories, files, imports, namespaces, and class references
- Case-insensitive matching
--dry-runpreview mode- Supports all config modes (root, flat, domain-based)
Backward Compatibility
Brain\ProcessandBrain\Taskcontinue to work as deprecated aliasesbrain:make:processandbrain:make:taskcommands still available- Config keys
brain.suffixes.processandbrain.suffixes.taskstill supported
Migration
php artisan brain:migrate --dry-run # preview changes
php artisan brain:migrate # apply migrationFull Changelog: 2.2.0...3.0.0