/** * Get the hydrated models. * * @return array */ public function getModels() { $results = $this->query->get(); $connection = $this->model->getConnectionName(); return $this->model->hydrate($results, $connection)->all(); }