SyntaxFix
Write A Post
Hire A Developer
Questions
I think you can change your query and try it like :
$res=User::where('id',$id)->delete();