diff --git a/src/WithFilePond.php b/src/WithFilePond.php index d39e889..b9ce7ac 100644 --- a/src/WithFilePond.php +++ b/src/WithFilePond.php @@ -14,6 +14,7 @@ trait WithFilePond public function remove($property, $filename): void { $file = Str::after($filename, config('app.url')); + $this->$property = []; File::delete(public_path($file)); }