SyntaxFix
Write A Post
Hire A Developer
Questions
Try doing it like this.
User::where('email', $userEmail) ->update([ 'member_type' => $plan ]);