Skip to content

Commit

Permalink
error
Browse files Browse the repository at this point in the history
  • Loading branch information
maged-web committed May 4, 2024
1 parent ac7535b commit 990ca22
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 @@ -43,7 +43,7 @@ public function download(House $house)
{
// TASK: Return the $house->photo file from "storage/app/houses" folder
// for download in browser
$filePath = storage_path('app/houses/' . $house->photo);
$filePath = storage_path('app/houses/');

// Check if the file exists
if (!Storage::exists('houses/' . $house->photo)) {
Expand Down

0 comments on commit 990ca22

Please sign in to comment.