File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -101,11 +101,6 @@ public function excerpt(int $limit = 100): string
101
101
return Str::limit (strip_tags (md_to_html ($ this ->body ())), $ limit );
102
102
}
103
103
104
- public function hasHeroImage (): bool
105
- {
106
- return $ this ->hero_image_url !== null ;
107
- }
108
-
109
104
public function hasHeroImageAuthor (): bool
110
105
{
111
106
return $ this ->hero_image_author_name !== null &&
@@ -114,11 +109,7 @@ public function hasHeroImageAuthor(): bool
114
109
115
110
public function heroImage ($ width = 400 , $ height = 300 ): string
116
111
{
117
- if ($ this ->hasHeroImage ()) {
118
- return "{$ this ->hero_image_url }&fit=clip&w= {$ width }&h= {$ height }&utm_source=Laravel.io&utm_medium=referral " ;
119
- }
120
-
121
- return asset ('images/default-background.svg ' );
112
+ return "{$ this ->hero_image_url }&fit=clip&w= {$ width }&h= {$ height }&utm_source=Laravel.io&utm_medium=referral " ;
122
113
}
123
114
124
115
public function originalUrl (): ?string
You can’t perform that action at this time.
0 commit comments