Skip to content

3.0.0

Choose a tag to compare

@r2luna r2luna released this 07 Mar 00:11
· 47 commits to main since this release
2409d45

🚀 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

  • Workflow class — Orchestrates a sequence of actions (replaces Process)
  • Action class — A single unit of work (replaces Task)
  • brain:make:workflow — Scaffold a new Workflow class
  • brain:make:action — Scaffold a new Action class
  • brain:migrate — Automatically migrate your codebase from Process/Task to Workflow/Action naming
    • Renames directories, files, imports, namespaces, and class references
    • Case-insensitive matching
    • --dry-run preview mode
    • Supports all config modes (root, flat, domain-based)

Backward Compatibility

  • Brain\Process and Brain\Task continue to work as deprecated aliases
  • brain:make:process and brain:make:task commands still available
  • Config keys brain.suffixes.process and brain.suffixes.task still supported

Migration

php artisan brain:migrate --dry-run   # preview changes
php artisan brain:migrate             # apply migration

Full Changelog: 2.2.0...3.0.0