Fix delete controller

This commit is contained in:
Neerholt 2020-06-29 13:20:48 +02:00
parent b1f2fdd2b7
commit db088ad9ba
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class ContactController extends Controller
* @param int $id * @param int $id
* @return \Illuminate\Http\Response * @return \Illuminate\Http\Response
*/ */
public function destroy($id) public function destroy(Contact $id)
{ {
$id->delete(); $id->delete();
return redirect()->route("contacts.index"); return redirect()->route("contacts.index");