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
You can also perform raw expressions on the internal MongoCollection object, note that this will return the original response, and not a collection of models.
450
+
You can also perform raw expressions on the internal MongoCollection object. If this is executed on the model class, it will return a collection of models. If this is executed on the query builder, it will return the original response.
451
451
452
-
User::raw(function($collection)
452
+
// Returns a collection of User models.
453
+
$models = User::raw(function($collection)
453
454
{
454
455
return $collection->find();
455
456
});
456
457
457
-
Or you can access the internal MongoCollection object directly:
0 commit comments