fix holding -> transactions relationship

This commit is contained in:
hackerESQ
2024-08-29 20:55:23 -05:00
parent c522e399e8
commit fc4f44ff05
2 changed files with 11 additions and 6 deletions
@@ -39,6 +39,8 @@ new class extends Component {
public function holdings(): Collection
{
// dd(Holding::toSql());
$holdings = $this->portfolio
->holdings()
->withCount(['transactions as num_transactions' => function($query) {