diff --git a/src/IlluminateSnappyPdf.php b/src/IlluminateSnappyPdf.php index ef7f0c6..3f80dad 100644 --- a/src/IlluminateSnappyPdf.php +++ b/src/IlluminateSnappyPdf.php @@ -74,7 +74,7 @@ protected function filesize($filename) */ protected function unlink($filename) { - return $this->fs->delete($filename); + return $this->fileExists($filename) && $this->fs->delete($filename); } /**