From 3cebdd838bd41a1a862c8a0c1780bc58c8daee7e Mon Sep 17 00:00:00 2001 From: James Collins Date: Wed, 19 Jul 2023 15:05:56 +1000 Subject: [PATCH] fix typecasting --- app/Models/Attachment.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/Models/Attachment.php b/app/Models/Attachment.php index 5a9eb1f..b273abc 100644 --- a/app/Models/Attachment.php +++ b/app/Models/Attachment.php @@ -27,12 +27,14 @@ class Attachment extends Model * @var string[] */ protected $attributes = [ - 'private' => 'false', + 'private' => false, ]; /** * Get attachments attachable + * + * @return MorphTo */ public function attachable(): MorphTo { @@ -41,6 +43,8 @@ class Attachment extends Model /** * Get the media for this attachment. + * + * @return BelongsTo */ public function media(): BelongsTo {