Compare commits
1 Commits
3b5a2aa1e4
...
83c3ad6e5e
Author | SHA1 | Date | |
---|---|---|---|
83c3ad6e5e |
@ -14,7 +14,7 @@ public function index() {}
|
||||
public function create(Request $request)
|
||||
{
|
||||
return view('contacts.create', [
|
||||
'customers' => Customer::all(),
|
||||
'customers' => Customer::all(),
|
||||
'fromCustomer' => $request->get('customer'),
|
||||
]);
|
||||
}
|
||||
@ -40,11 +40,5 @@ public function requestDestroy(Request $request)
|
||||
return redirect()->route('customers.show', [$contact->customer->id, 'contacts'])->with('status', 'Contact deleted successfully');
|
||||
}
|
||||
|
||||
public function destroy($id)
|
||||
{
|
||||
// $contact = Contact::findOrFail($id);
|
||||
// $contact->delete();
|
||||
//
|
||||
// return redirect()->route('customers.show', $contact->customer()->iud)->with('status', 'Contact deleted successfully');
|
||||
}
|
||||
public function destroy($id) {}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user