I am creating some emails for my site to send out using the job system. Instead of dispatching a job class to the queue, I'm dispatching a closure.
dispatch(function() use ($var1, $var2, $var3)){
...
}
I need to add some failure conditions (files can't be found, etc.). What is the best way to do this? Return false? Create an exception?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire