laravel get all where eloquent code example
Example 1: eloquent first
$user = User::where('mobile', Input::get('mobile'))->get();
if (!$user->isEmpty()){
$firstUser = $user->first()
}
Example 2: laravel eloquent fill
$flight->fill(['name' => 'Flight 22']);