diff --git a/app/Http/Controllers/HouseController.php b/app/Http/Controllers/HouseController.php index 9d2ea0f8..45148f9a 100644 --- a/app/Http/Controllers/HouseController.php +++ b/app/Http/Controllers/HouseController.php @@ -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($filename); + Storage::delete('/houses/'.$filename); $house->update([ 'name' => $request->name,