Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
tauseefsshah committed Sep 30, 2024
1 parent 56e2f91 commit 334a3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Article.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function hasHeroImage(): bool
public function heroImage($width = 400, $height = 300): string
{
if ($this->hero_image) {
return "https://source.unsplash.com/{$this->hero_image}/{$width}x{$height}";
return "{$this->hero_image_url}&fit=clip&w={$width}&h={$height}";
}

return asset('images/default-background.svg');
Expand Down

0 comments on commit 334a3d1

Please sign in to comment.