Skip to content

How to implement audit on mongodb implemented model #853

Answered by aromka
ks-dipeshc asked this question in Q&A
Discussion options

You must be logged in to vote

You'll need to add HybridRelations trait to your model.

ie.

...
use Jenssegers\Mongodb\Eloquent\HybridRelations;

class Questionset extends Model implements Auditable
{
    use \OwenIt\Auditing\Auditable, HybridRelations;
    
    ...
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by parallels999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #823 on August 28, 2023 15:38.