brexis / laravel-workflow

Use the Symfony Workflow component in Laravel
MIT License
281 stars 104 forks source link

Using workflow_transitions in WorkflowTrait gives exception #35

Open aymanterra opened 6 years ago

aymanterra commented 6 years ago

Issue : When more than one workflow is defined for the same class the method workflow_transitions gives exception with message "At least two workflows match this subject. Set a different name on each and use the second (name) argument of this method."

Solution : Passing workflow name in method argument.

Pull Request :

34