/** * @param $id * @todo test */ public function updateImage($id) { $model = $this->find($id); $model->update(["image" => ImageHelper::getBinaryData('600', 'image')]); }
/** * Fetch an image given a path */ protected function getBinaryData() { return Image::make(ImageHelper::getPathFromInput('image'))->resize(600, null, true); }