Laravel 5.1 workstations and listeners

So Laravel 5.1 changes folders Commands to Jobs

and Handlers to Listeners

. I am a little confused if the Listeners folder now handles events rather than jobs. Is all self-service Jobs in 5.1? Or should I create a Handlers folder and process jobs there?

+3


source to share


1 answer


Jobs is currently an independent work. They are like commands and implement the SelfHandling interface. A change is just a rename of a folder so people don't confuse it with other commands (like console commands). Try to think of the job as a team, as the team completes the task.



Or, nevertheless, you can create a directory of applications / commands and applications / handlers and continue using the commands as you are used to. Work and teams are just different ways to do the same.

+1


source







All Articles