Skip to content

Commit

Permalink
Update HouseController.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Jan 29, 2024
1 parent d75b2f4 commit f940609
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/HouseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +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('/houses/'.$filename);
Storage::delete('houses/'.$filename);

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

0 comments on commit f940609

Please sign in to comment.