for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Colligator\Jobs;
use Colligator\Events\JobError;
use Event;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
abstract class Job implements ShouldQueue
{
/*
|--------------------------------------------------------------------------
| Queueable Jobs
|
| This job base class provides a central location to place any logic that
| is shared across all of your jobs. The trait included with the class
| provides access to the "queueOn" and "delay" queue helper methods.
*/
use InteractsWithQueue, Queueable, SerializesModels;
protected function error($msg)
\Log::error($msg);
Event::fire(new JobError($msg));
}