How can I access the auth context inside a trait

I wan to create a CreatorUpdaterTrait, I want to know how can I acccess the auth context inside the trait.

I’m interested too, @kfa did you solve it?

You have to manually pass it as function param, since models don’t have access to request context (unless you send it as function param yourself)

2 Likes

I see. I’ll do it.

Just like @McSneaky answer, need to pass the auth as params.

1 Like