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 fe22387 commit 255e4e2
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 @@ -39,6 +39,6 @@ public function download(House $house)
{
// TASK: Return the $house->photo file from "storage/app/houses" folder
// for download in browser
return Storage::download(asset('storage/'.$request->photo));
return Storage::download($house->photo);
}
}

0 comments on commit 255e4e2

Please sign in to comment.