diff --git a/code/webapp/app/Http/Controllers/NewsController.php b/code/webapp/app/Http/Controllers/NewsController.php index 188f2c49..08fa30ec 100644 --- a/code/webapp/app/Http/Controllers/NewsController.php +++ b/code/webapp/app/Http/Controllers/NewsController.php @@ -122,6 +122,8 @@ public function destroy($id) Gate::authorize("allowAdmin"); $new = Info::find($id); + $news_content = InfoContent::where('info_id', $id); + $news_content->delete(); $new->delete(); $msg = "New Info Content Deleted successful! ";