protected function insertTableData(& $data, $useQueue = true)
    {
        $job = new DBInsert($this->service->getName(), $this->resource, $data);
        if ($useQueue !== true) {
            $job->onConnection('sync');
        }

        dispatch($job);
        $data = [];
    }
protected function insertTableData(& $data, $useQueue = true)
    {
        $job = new DBInsert($this->service->getName(), $this->resource, $data);
        if ($useQueue !== true) {
            $job->onConnection('sync');
        }

        dispatch($job);
        $data = [];
    }
protected function insertTableData ( & $ data , $ useQueue = true ) { $ job = new DBInsert ( $ this -> service -> getName ( ) , $ this -> resource , $ data ) ; if ( $ useQueue !== true ) { $ job -> onConnection ( 'sync' ) ; } dispatch ( $ job ) ; $ data = [ ] ; }
Inserts data into table

@param      $data
@param bool $useQueue
Inserts data into table