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 functionality to service provider #18

Closed
wants to merge 2 commits into from

Conversation

mscmorris
Copy link

Added a method which registers the mongodb connection as the database
presence verifier for use with laravel Validation

Added a method which registers the mongodb connection as the database
presence verifier for use with laravel Validation
@jenssegers
Copy link
Contributor

Maybe we should add this to a separate service provider so that we can make this optional? This pull request currently breaks the code because Illuminate\Validation is not required in the composer.json.

@mscmorris
Copy link
Author

Yes, that's probably a good idea, and I thought about it a bit some earlier. The only thing I wonder is whether one service provider should depend on another.

As for the break, the latest commit in the pull should have the proper dependency. That is strange.

@jenssegers
Copy link
Contributor

I found a way to extend the original database manager instead of registering a new database manager. This pull request is probably no longer needed since it is now using app['db'] and not app['mongodb'] anymore.

@mscmorris
Copy link
Author

Thanks!

Smolevich pushed a commit that referenced this pull request Feb 10, 2020
alcaeus pushed a commit to alcaeus/laravel-mongodb that referenced this pull request Aug 16, 2023
alcaeus pushed a commit that referenced this pull request Aug 22, 2023
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

3 participants