Skip to content

Commit

Permalink
fix : show latest invoices
Browse files Browse the repository at this point in the history
  • Loading branch information
abourtnik committed Mar 20, 2024
1 parent a13a30e commit 0016999
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Http/Controllers/User/InvoiceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ class InvoiceController
public function index(): View {

return view('users.invoices.index', [
'invoices' => Transaction::where('user_id' , Auth::user()->id)->paginate()
'invoices' => Transaction::where('user_id' , Auth::user()->id)
->latest('date')
->paginate()
]);
}

Expand Down

0 comments on commit 0016999

Please sign in to comment.