Skip to content

Commit

Permalink
Set property to empty array when removing file
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv committed Oct 7, 2024
1 parent 8a79d6e commit 3a60d03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/WithFilePond.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 3a60d03

Please sign in to comment.