using where laravel code example
Example 1: laravel db::query update
DB::table('user')->where('email', $userEmail)->update(array('member_type' => $plan));
Example 2: get all data eloquent laravel
Blog::all();
//example usage.
$posts = Blog::all();