Fix delete controller

This commit is contained in:
Neerholt 2020-06-29 13:08:39 +02:00
parent 9bc7369ffe
commit 08d5436f22
1 changed files with 1 additions and 3 deletions

View File

@ -103,9 +103,7 @@ class ContactController extends Controller
*/
public function destroy($id)
{
$contact = Contact::find($id);
$contact->delete();
$id->delete();
return redirect()->route("contacts.index");
}
}