/** * Push a new job onto the queue. * * @param string $job * @param mixed $data * @param string $queue * @return mixed * @static */ public static function push($job, $data = '', $queue = null) { return \Illuminate\Queue\DatabaseQueue::push($job, $data, $queue); }
/** * Push a new job onto the queue. * * @param string $job * @param mixed $data * @param string|null $queue * * @return int */ public function push($job, $data = '', $queue = null) { $id = parent::push($job, $data, $queue); $this->startProcess($id); return $id; }