diff --git a/app/Http/Controllers/ContactController.php b/app/Http/Controllers/ContactController.php index 861c141..5bd2737 100644 --- a/app/Http/Controllers/ContactController.php +++ b/app/Http/Controllers/ContactController.php @@ -49,6 +49,7 @@ public function update(Request $request, $id) public function destroy($id) { - + Contact::destroy($id); + return redirect('contact')->with('flash_message', 'Contact deleted!'); } } \ No newline at end of file