*/ class PaymentsController extends Controller { public function index(Customer $customer) { $payments = $customer->payments() ->latest() ->with('project') ->paginate(); return view('customers.payments', compact('customer', 'payments')); } }