protected function get()
{
if ($this->model instanceof Paginator) {
return $this->model;
}
$this->setSort();
$this->setPaginate();
$this->queries->each(function ($query) {
$this->model = call_user_func_array([$this->model, $query['method']], $query['arguments']);
});
return $this->model;
}