Fixes
This commit is contained in:
@@ -98,10 +98,11 @@ class ContactController extends Controller
|
||||
/**
|
||||
* Remove the specified resource from storage.
|
||||
*
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\Response
|
||||
* @param int $id
|
||||
* @return \Illuminate\Http\RedirectResponse
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function destroy($id)
|
||||
public function destroy(Contact $id)
|
||||
{
|
||||
$id->delete();
|
||||
return redirect()->route("contacts.index");
|
||||
|
||||
Reference in New Issue
Block a user