public function toggleApproved($id) { $comment = Comment::find($id); $comment->approved = $comment->approved ? false : true; $comment->save(); return redirect('admin/comments'); }