Base job use trait.
This commit is contained in:
@@ -1,18 +1,21 @@
|
|||||||
<?php namespace App\Jobs;
|
<?php namespace App\Jobs;
|
||||||
|
|
||||||
|
use Illuminate\Bus\Queueable;
|
||||||
|
|
||||||
abstract class Job
|
abstract class Job
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* The name of the queue the job should be sent to.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
*/
|
|
||||||
public $queue;
|
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* The seconds before the job should be made available.
|
|--------------------------------------------------------------------------
|
||||||
*
|
| Queueable Jobs
|
||||||
* @var int
|
|--------------------------------------------------------------------------
|
||||||
*/
|
|
|
||||||
public $delay;
|
| 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 Queueable;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user