LA
тогда аксессором
public function _prepayments () {
return $this->hasMany(Prepayment::class, 'employee_id', 'id')->where('transaction_type', Prepayment::class)
}
public function getPrepaymentsAttribute() {
return $this->_prepayments()->get();
}
и в $employee->prepayments должно по идее быть то что нужно