Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to use mongoDb Collection::watch() in laravel #2652

Unanswered
robod9590 asked this question in Q&A
Discussion options

i want to use mongodb collection::watch() in laravel so when change occure in mongodb collection i can update my mysql table
i connect both mysql and mongodb in laravel

You must be logged in to vote

Replies: 1 comment

Comment options

Hello, the best solution is to use the mongodb/mongodb features directly.

/** @var \MongoDB\Laravel\Connection */
$mongodb = DB::connection('mongodb');
You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /