protected function tryAgainIfCausedByLostConnection(QueryException $e, $query, $bindings, Closure $callback)
    {
        if ($this->causedByLostConnection($e->getPrevious())) {
            $this->reconnect();

            return $this->runQueryCallback($query, $bindings, $callback);
        }

        throw $e;
    }
protected function tryAgainIfCausedByLostConnection(QueryException $e, $query, $bindings, Closure $callback)
    {
        if ($this->causedByLostConnection($e->getPrevious())) {
            $this->reconnect();

            return $this->runQueryCallback($query, $bindings, $callback);
        }

        throw $e;
    }
protected function tryAgainIfCausedByLostConnection ( QueryException $ e , $ query , $ bindings , Closure $ callback ) { if ( $ this -> causedByLostConnection ( $ e -> getPrevious ( ) ) ) { $ this -> reconnect ( ) ; return $ this -> runQueryCallback ( $ query , $ bindings , $ callback ) ; } throw $ e ; }
Handle a query exception that occurred during query execution.

@param  \Illuminate\Database\QueryException  $e
@param  string    $query
@param  array     $bindings
@param  \Closure  $callback
@return mixed

@throws \Illuminate\Database\QueryException
Handle a query exception that occurred during query execution .