I want to get the first row in table where condition matches:
User::where(\'mobile\', Input::get(\'mobile\'))->first()
It works well, bu
Try it this way in a simple manner it will work
$userset = User::where('name',$data['name'])->first(); if(!$userset) echo "no user found";