1 DB::table('user')->where('email', $userEmail)->update(array('member_type' => $plan));
2
1use App\Models\Flight;
2
3$flight = Flight::find(1);
4
5$flight->name = 'Paris to London';
6
7$flight->save();
1use App\Models\User;
2
3$User_Update = User::where("id", '2')->update(["member_type" => $plan]);