agapito78's avatar

Workflow Libraries ( What is recomended for Laravel? Simfony Workflow?)

I'm considering to use Simfony workflow in Laravel 5.4 for an eCommerce Orders Processing Workflow. I'm not sure it is recomended for Laravel, or if I should just develop a simple workflow from scratch or using a library like Simfony Workflow. Does anyone have any recommendation?

Simfony for Laravel: https://packagist.org/packages/brexis/laravel-workflow

Tutorial for Simfony: http://blog.eleven-labs.com/en/symfony-workflow-component/

0 likes
3 replies
lakilevi's avatar

How did you manage this in the very end? I have the same problem now.

thanks

martinbean's avatar

@lakilevi I recently implemented the Symfony Workflow component for order statuses myself.

I registered the workflow itself in a service provider, created a single state marking store that works with Eloquent models, and can now call it like this:

$workflow = $order->getStatusWorkflow();

$workflow->can($order, 'cancel');
1 like

Please or to participate in this conversation.