You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i am using DB::table("users")->where("_id","xyz")->first(); this is returning an array but laravel default behaviour of first() method should return object not an array.
If i am using Model query like User::where("_id","xyz")->first() it's returning object that is perfectly fine but in case of DB queries it returning array not object so here you are violating the default behaviour of first() method