laravel using where clause to query code example
Example: laravel db::query update
DB::table('user')->where('email', $userEmail)->update(array('member_type' => $plan));
DB::table('user')->where('email', $userEmail)->update(array('member_type' => $plan));