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

Added override for creating custom eloquent/model collection #380

Closed

Conversation

bbrothers
Copy link

Eloquent allows us to override the default Collection class for a given model by implementing a newCollection method in the model.

This merge request makes a minor change to allow that same functionality but default to an instance of Jenssegers\Mongodb\Collection.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) when pulling 2475dd6 on bbrothers:custom-eloquent-collections into 3bddd4b on jenssegers:master.

@philipbrown
Copy link
Contributor

Hey @jenssegers any reason why you haven't merged this? ☺️

@ryangoodrich
Copy link

+1 to have this merged in to the next release

@jenssegers jenssegers closed this Jul 22, 2018
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

Successfully merging this pull request may close these issues.

None yet

5 participants