Skip to content

Commit

Permalink
Update HouseController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Feb 14, 2024
1 parent 8f1b91a commit bacdd3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/HouseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function update(Request $request, House $house)
$filename = $request->file('photo')->store('houses');

// TASK: Delete the old file from the storage
Storage::delete($house->photo);

$house->update([
'name' => $request->name,
Expand Down

0 comments on commit bacdd3a

Please sign in to comment.