render( 'image_sizer', [ 'model' => $this->model, 'size' => $this->size, 'field' => $this->field, 'height' => $this->height, 'width' => $this->width, 'multi' => $this->multi, 'name' => $this->name, 'remover' => $this->remover, ] ); } public function getGallery() { if ($this->gallery) { $array = explode(",", $this->gallery); if (count($array) > 1) { array_pop($array); } return $array; } else { return []; } } }