You're right, you can put your logic in the command class without creating a job. That makes a lot of sense to me.
The Laravel documentation has this suggestion:
"It is good practice to keep your console commands light and let them defer to application services to accomplish their tasks."
I based my approach on this.
ohhk. I personally prefer running commands as independent unit. no dependency on queue n all.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You're right, you can put your logic in the command class without creating a job. That makes a lot of sense to me.
The Laravel documentation has this suggestion:
"It is good practice to keep your console commands light and let them defer to application services to accomplish their tasks."
I based my approach on this.
ohhk. I personally prefer running commands as independent unit. no dependency on queue n all.