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