$user = User::where('mobile', Input::get('mobile'))->get(); if (!$user->isEmpty()){ $firstUser = $user->first() }
foreach (Flight::where('foo', 'bar')->cursor() as $flight) { // }