belongsTo(Pathogen::class, 'pathogen_id', 'id'); } public function aliquots() { return $this->hasMany(Aliquot::class, 'sample_id', 'id'); } }