Fix delete controller
This commit is contained in:
parent
b1f2fdd2b7
commit
db088ad9ba
|
@ -101,7 +101,7 @@ class ContactController extends Controller
|
|||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function destroy($id)
|
||||
public function destroy(Contact $id)
|
||||
{
|
||||
$id->delete();
|
||||
return redirect()->route("contacts.index");
|
||||
|
|
Loading…
Reference in New Issue