Posts by Guilherme Rosa • 9 points
2 posts
-
0
votes1
answer251
viewsA: Laravel: Problem with foreach
So I managed to solve the problem. public function extract(Occupation $occupation){ $occupations = Occupation::join('invoices', 'occupations.id', '=', 'invoices.occupation_id')…
-
0
votes1
answer251
viewsQ: Laravel: Problem with foreach
public function extract(){ $occupation = Occupation::join('invoices', 'occupations.id', '=', 'invoices.occupation_id') ->leftJoin('payments', 'invoices.id', '=', 'payments.invoice_id')…