We're excited to announce the release of Workflow Manager v2.0.0! This major version brings significant improvements, modern PHP features, and enhanced developer experience.
This is a major version with breaking changes. Please review the migration guide before upgrading:
Workflows to WorkflowsContractgetStates() method now returns enum class name instead of arrayWorkflowStateSelect to StateSelectsetWorkflowForModel() and setRole() instead of workflowModel()// Before v2.0
class YourModel extends Model implements Workflows
{
public static function getStates(): array
{
return ['draft' => 'Draft', 'published' => 'Published'];
}
}
// v2.0+
class YourModel extends Model implements WorkflowsContract
{
public static function getStates(): string
{
return YourModelStatusEnum::class;
}
}
// Before v2.0
WorkflowStateSelect::make('status')
->workflowModel(YourModel::class, 'admin')
// v2.0+
StateSelect::make('status')
->setWorkflowForModel(YourModel::class)
->setRole('admin')
enum YourModelStatusEnum: string
{
case DRAFT = 'draft';
case PUBLISHED = 'published';
public function getLabel(): string
{
return match ($this) {
self::DRAFT => 'Draft',
self::PUBLISHED => 'Published',
};
}
}
ignored_actions for flexible workflow validationcomposer require xentixar/workflow-manager:^2.0
For new installations:
php artisan vendor:publish --tag=workflow-manager-config
php artisan vendor:publish --tag=workflow-manager-migrations
php artisan migrate
If you encounter any issues during migration or have questions, please:
Thank you for using Workflow Manager! We're excited to see what you build with v2.0! 🎉
We're excited to announce the release of Workflow Manager v1.0.1 for Laravel Filament! This update brings significant architectural improvements to the workflow state management system and enhances the overall user experience.
This release introduces a complete rethinking of how workflow states are managed, with a dedicated workflow_states table that provides better data integrity and more flexible workflow definitions:
This update includes breaking changes to the database schema. When upgrading, you'll need to:
php artisan vendor:publish --tag=workflow-manager-migrations
php artisan migrate
Documentation has been updated to reflect these changes. Refer to the README.md for complete details on how to use the new state management system.
Thank you for using Workflow Manager! As always, we welcome your feedback and contributions to make this package even better.
We are excited to announce the first official release of Workflow Manager for Laravel Filament!
Workflow Manager is a powerful package that allows you to define and manage state transitions for your Laravel models through an intuitive admin interface.
WorkflowStateSelect component in your Filament forms to automatically enforce workflow rulesThank you for choosing Workflow Manager for your state transition needs. We welcome your feedback and contributions!
How can I help you explore Laravel packages today?