laravel custom query code example
Example 1: laravel db::query update
DB::table('user')->where('email', $userEmail)->update(array('member_type' => $plan));
Example 2: DB::table('users')->get();
DB::select('SELECT * FROM users WHERE name = "'.Input::get('name').'"');
Example 3: DB::table('users')->get();
DB::table('users')->where('name', Input::get('name'))->get();