I want to get the first row in table where condition matches:
User::where(\'mobile\', Input::get(\'mobile\'))->first()
It works well, bu
(ps - I couldn't comment) I think your best bet is something like you've done, or similar to:
$user = User::where('mobile', Input::get('mobile')); $user->exists() and $user = $user->first();
Oh, also: count() instead if exists but this could be something used after get.
count()
exists
get