laravel add socpe in query in retrieve model event 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()
}