*/ protected $fillable = [ 'vault_id', 'label', ]; /** * Get the vault associated with the life metric. */ public function vault(): BelongsTo { return $this->belongsTo(Vault::class); } /** * Get the contacts associated with the life metric. */ public function contacts(): BelongsToMany { return $this->belongsToMany(Contact::class, 'contact_life_metric', 'contact_id', 'life_metric_id')->withTimestamps(); } }