*/ protected $fillable = [ 'media_id', 'private', ]; /** * The default attributes. * * @var string[] */ protected $attributes = [ 'private' => 'false', ]; /** * Get attachments attachable */ public function attachable(): MorphTo { return $this->morphTo(); } /** * Get the media for this attachment. */ public function media(): BelongsTo { return $this->belongsTo(Media::class); } }