Support the ongoing development of Laravel.io →
Architecture

From Laracast I came to know about Command Bus pattern which jeffrey followed in his LaraBook Series so I decided to use the same. Till now it was good but now I am under situation I need to sort out.

Basically I need to create a subscriber (form is there for the same) which actually contains lot of actions.

1.) Creating company 2.) Creating admin user 3.) Assigning few other things ( like states, roles) to admin user..

I am stucked at first step itself, Do I define these much parameters in constructor of my CommandObject?

Further in my CommandHalnder should I do all those sub tasks? What will be the preferred way to approach this following the command bus pattern?

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.