29.07.2016 Views

laravel-5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Queues 324<br />

.<br />

14 */<br />

15 public function boot()<br />

16 {<br />

17 Queue::failing(function ($connection, $job, $data) {<br />

18 // Notify team of failing job...<br />

19 });<br />

20 }<br />

21<br />

22 /**<br />

23 * Register the service provider.<br />

24 *<br />

25 * @return void<br />

26 */<br />

27 public function register()<br />

28 {<br />

29 //<br />

30 }<br />

31 }<br />

Failed Method On Job Classes<br />

For more granular control, you may define a failed method directly on a queue job class, allowing<br />

you to perform job specific actions when a failure occurs:<br />

.<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!