belongsTo(Box::class, 'box_id', 'id'); } public function aliquot() { return $this->hasOne(Aliquot::class, 'storage_position_id', 'id') ->where(BaseModel::RECORD_STATUS_FIELD, BaseModel::RECORD_STATUS_ACTIVE); } }