get data using model from table laravel code example
Example 1: how to create model in laravel
php artisan make:model Flight
Example 2: eloquent first
$user = User::where('mobile', Input::get('mobile'))->get();
if (!$user->isEmpty()){
$firstUser = $user->first()
}