Skip to content
Discussion options

You must be logged in to vote

My question is, instead of me having to query the database to fetch the respective $achievement and $activity each time the user performs the action (2 eloquent queries). Is there a more efficient way of doing this?

Not at this time. I am open to accepting PR's for this.

As for AuditType, I understand that it is auto-populated but I don’t understand in what cases would I need to overwrite it? Can you give me an example to illustrate this?

Overwrite the reason to just provide your own custom reasoning message.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
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 zhpeh
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