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[]
*/
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
{