fix typecasting
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user