name = $this->getStoreName($image); $this->callInterventionMethods($image->getRealPath(), $image->getMimeType()); return tap($this->upload($image), function () { $this->name = null; }); } /** * Render a image form field. * * @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View */ public function render() { $this->options(['allowedFileTypes' => ['image']]); return parent::render(); } }