Skip to content

Difference of using Trait DocumentModel and extending using Mongodb Model #3106

Closed Answered by GromNaN
masterbater asked this question in Q&A
Discussion options

You must be logged in to vote

Using MongoDB\Laravel\Eloquent\Model should be preferred:

The trait MongoDB\Laravel\Eloquent\DocumentModel was introduced in order to support 3rd party model classes.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@masterbater
Comment options

Answer selected by masterbater
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants