Fixed deletion
This commit is contained in:
parent
484641bdee
commit
e0142bf977
|
@ -113,9 +113,10 @@ class ContactController extends Controller
|
|||
* @return \Illuminate\Http\RedirectResponse
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function destroy(Contact $id)
|
||||
public function destroy($id)
|
||||
{
|
||||
$id->delete();
|
||||
$contact = Contact::find($id);
|
||||
$contact->delete();
|
||||
return redirect()->route("contacts.index");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue