You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a reason why the user is always preloaded? Can we discuss an approach where it would be possible to control when the user should be preloaded and when it should be re-resolved?
Steps To Reproduce
Set up Auditable for any model
On the same request:
Update the model
Dynamically change the user (Auth::setUser())
Update the model some more
Possible Solutions
No response
The text was updated successfully, but these errors were encountered:
If you have multiple users within a single request to your code doing auditable activity as well as changing users, it would probably be easier to make use of transformAudit rather than rely on observers which won't match your particular use case
PHP Version
8.1
Laravel Version
8.x
Package Version
13.6.8
Description
Hello guys,
When changing user on-the-fly and performing a few changes on the same model, all audits have the same associated user because of this change - 66498a9#diff-682a5b02fc6acf79eda6201541882897f0f0a3fca0d35f02e3398021fd77c63eR368-R372
Is there a reason why the user is always preloaded? Can we discuss an approach where it would be possible to control when the user should be preloaded and when it should be re-resolved?
Steps To Reproduce
Auth::setUser()
)Possible Solutions
No response
The text was updated successfully, but these errors were encountered: