1$user = User::where('mobile', Input::get('mobile'))->first(); // model or null
2if (!$user) {
3 // Do stuff if it doesn't exist.
4}
5Other techniques (not recommended, unnecessary overhead):
6
7$user = User::where('mobile', Input::get('mobile'))->get();
8
9if (!$user->isEmpty()){
10 $firstUser = $user->first()
11}