orderBy('created_at', 'desc') ->paginate(10); return response()->json($invoices); } }