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