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