diff --git a/src/Models/Post.php b/src/Models/Post.php index 46e2437..f1b2026 100644 --- a/src/Models/Post.php +++ b/src/Models/Post.php @@ -101,7 +101,7 @@ public function parent(): BelongsTo return $this->belongsTo(self::class, 'parent_id', 'id'); } - public function image(): Collection|string|null + public function image(): Collection | string | null { if (! $this->getMedia('posts')->isEmpty()) { return $this->getFirstMediaUrl('posts');