Customer::all(), 'fromCustomer' => $request->get('customer'), ]); } public function store(ContactRequest $request): RedirectResponse { $contact = Contact::create($request->validated()); return redirect()->route('customers.show', [$contact->customer, 'contacts'])->with('status', 'Contact created successfully'); } public function show(int $id): void {} public function edit(int $id): void {} public function update(Request $request, int $id): void {} public function requestDestroy(Request $request): RedirectResponse { $contact = Contact::find($request->get('contact')); $contact->delete(); return redirect()->route('customers.show', [$contact->customer->id, 'contacts'])->with('status', 'Contact deleted successfully'); } public function destroy(int $id): void {} }