We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e573c4 commit 58e5b43Copy full SHA for 58e5b43
app/Http/Resources/Articles/ArticleResource.php
@@ -18,7 +18,7 @@ public function toArray(Request $request): array
18
return [
19
'id' => $this->id,
20
'title' => $this->title,
21
- 'cover_photo_url' => $this->cover_photo_url,
+ 'cover_photo_url' => $this->cover_photo_url ?? '#',
22
'description' => Str::of($this->content)
23
->stripTags()
24
->limit(200),
0 commit comments