Skip to content

Commit 334a3d1

Browse files
committed
WIP
1 parent 56e2f91 commit 334a3d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Models/Article.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function hasHeroImage(): bool
106106
public function heroImage($width = 400, $height = 300): string
107107
{
108108
if ($this->hero_image) {
109-
return "https://source.unsplash.com/{$this->hero_image}/{$width}x{$height}";
109+
return "{$this->hero_image_url}&fit=clip&w={$width}&h={$height}";
110110
}
111111

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

0 commit comments

Comments
 (0)