toArray(); // dd($array); $this->current_page = $array['current_page']; $this->list = $array['data']; $this->last_page = $array['last_page']; $this->per_page = $array['per_page']; $this->total = $array['total']; $this->has_more = ($this->current_page < $this->last_page); } static public function to(\Illuminate\Pagination\LengthAwarePaginator $paginato) { return new self($paginato); } }