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