diff --git a/src/Repositories/ImageRepository.php b/src/Repositories/ImageRepository.php index 4b02008..896ab96 100644 --- a/src/Repositories/ImageRepository.php +++ b/src/Repositories/ImageRepository.php @@ -114,7 +114,9 @@ public function deleteFile($comand) { */ private function removeFileFromDisk() { $file = $this->destination . '/' . $this->file->path; - unlink($file); + if(file_exists($file)){ + unlink($file); + } $this->raise(new FileWasRemovedFromDisc($this->file)); }