/**
  * @param Builder $builder
  * @param array $request
  */
 public function __construct(Builder $builder, array $request)
 {
     $this->query_type = 'builder';
     $this->query = $builder;
     $this->columns = $this->query->columns;
     $this->connection = $this->query->getConnection();
     if ($this->isDebugging()) {
         $this->connection->enableQueryLog();
     }
     parent::__construct($request);
 }
예제 #2
0
 /**
  * @param mixed $model
  * @param $request
  */
 public function __construct($model, $request)
 {
     $this->query_type = 'eloquent';
     $this->query = $model instanceof Builder ? $model : $model->getQuery();
     $this->columns = $this->query->getQuery()->columns;
     $this->connection = $this->query->getQuery()->getConnection();
     if ($this->isDebugging()) {
         $this->connection->enableQueryLog();
     }
     parent::__construct($request);
 }
예제 #3
0
 /**
  * @inheritdoc
  */
 public function make($mDataSupport = false, $orderFirst = true)
 {
     return parent::make($mDataSupport, $orderFirst);
 }