Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run raw query #19

Closed
ezsil opened this issue Aug 15, 2013 · 1 comment
Closed

Can't run raw query #19

ezsil opened this issue Aug 15, 2013 · 1 comment

Comments

@ezsil
Copy link

ezsil commented Aug 15, 2013

I can't see anyway to run a raw Mongo query using the open database connection. Is this possible? If not, I'd say this is an issue.

@jenssegers
Copy link
Contributor

I added support to execute raw expressions like this:

DB::collection('users')->raw(function($collection)
{
    return $collection->find();
});

Or:

DB::collection('users')->raw()->find();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants