*/ protected $fillable = [ 'vault_id', 'name', 'slug', 'description', 'bg_color', 'text_color', ]; /** * Get the vault associated with the label. * * @return BelongsTo */ public function vault(): BelongsTo { return $this->belongsTo(Vault::class); } /** * Get the contacts associated with the label. * * @return BelongsToMany */ public function contacts(): BelongsToMany { return $this->belongsToMany(Contact::class); } /** * Get the label's feed item. * * @return MorphOne */ public function feedItem(): MorphOne { return $this->morphOne(ContactFeedItem::class, 'feedable'); } }