src/Shamiao/L4mysqlqueue/Queue/MysqlQueue.php
private function insertJobRecord($payload, $time, $queue)
    {
        if (!$time instanceof DateTime) {
            throw new ErrorException('An explicit DateTime value $time is required. ');
        }
        $jobId = DB::table($this->table)->insertGetId([
            'queue_name' => $queue, 
            'payload'  => $payload, 
            'status'   => 'pending', 
            'attempts' => 1, 
            'fireon'   => $time->getTimestamp(), 
        ]);
        return $jobId; 
    }
private function insertJobRecord($payload, $time, $queue)
    {
        if (!$time instanceof DateTime) {
            throw new ErrorException('An explicit DateTime value $time is required. ');
        }
        $jobId = DB::table($this->table)->insertGetId([
            'queue_name' => $queue, 
            'payload'  => $payload, 
            'status'   => 'pending', 
            'attempts' => 1, 
            'fireon'   => $time->getTimestamp(), 
        ]);
        return $jobId; 
    }
Insert a job record into database.

@param  string   $payload Payload string.
@param  DateTime $time    Exact firing time of the job.
@param  string   $queue   Queue name of the job.
@return int               ID of new record inserted.