0
Q:

eloquent first

$user = User::where('mobile', Input::get('mobile'))->get();

if (!$user->isEmpty()){
    $firstUser = $user->first()
}
1
foreach (Flight::where('foo', 'bar')->cursor() as $flight) {
    //
}
0

New to Communities?

Join the community