1'First email'
2 User::whereEmail($email)->first();
3'First Record'
4 User::first();
1// return first row by id
2$user = App\User::where('id',$id)->first();
3// or return directly a field
4$userId = App\User::where(...)->pluck('id');
1$user = DB::table('users')->where('name', 'John')->first();
2
3var_dump($user->name);