Skip to content

Commit

Permalink
Fix image urls were incorrectly using local absolute path.
Browse files Browse the repository at this point in the history
  • Loading branch information
furic committed Jul 29, 2021
1 parent 4e48df3 commit be9e7f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/HouseAd.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class HouseAd extends Model

public function getUrlImagePortraitAttribute()
{
return public_path().'/images/'.$this->image_portrait;
return url('/images/'.$this->image_portrait);
}

public function getUrlImageLandscapeAttribute()
{
return public_path().'/images/'.$this->image_landscape;
return url('/images/'.$this->image_landscape);
}

public function stat()
Expand Down

0 comments on commit be9e7f1

Please sign in to comment.