fix typecasting

This commit is contained in:
2023-07-19 15:05:56 +10:00
parent 9996404e29
commit 3cebdd838b

View File

@@ -27,12 +27,14 @@ class Attachment extends Model
* @var string[] * @var string[]
*/ */
protected $attributes = [ protected $attributes = [
'private' => 'false', 'private' => false,
]; ];
/** /**
* Get attachments attachable * Get attachments attachable
*
* @return MorphTo
*/ */
public function attachable(): MorphTo public function attachable(): MorphTo
{ {
@@ -41,6 +43,8 @@ class Attachment extends Model
/** /**
* Get the media for this attachment. * Get the media for this attachment.
*
* @return BelongsTo
*/ */
public function media(): BelongsTo public function media(): BelongsTo
{ {