$customer->load(['addresses', 'invoices'])]); } /** * Show the form for editing the specified resource. */ public function edit(Customer $customer): View { return view('customer.edit', ['customer' => $customer->load(['addresses'])]); } }