Replies: 1 comment 1 reply
-
Certainly an interesting problem, particularly when using singleton and injecting the $app seems to be the way laravel wants people to instantiate managers. Have you tried either or both solutions to see if they work for you? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Thanks for this great package that I use for many years!
Sometime, it's seem that my audits was not saved (with Octane/FrankenPHP, Laravel from 10-12, laravel-auditing v14) and I try to figure out where issue come.
After digging into the code,
Auditor
class is bound withinsingleton
that may cause some issue with Octane.laravel-auditing/src/AuditingServiceProvider.php
Lines 45 to 47 in 177715e
As I don't know the side effect to PR this, I start this discussion.
Maybe it will not solve my issue but it'll enhance support with Octane in any case 😄
Possible solutions
Bind doc
Scoped doc
Thanks a lot for your help to dig inside!
Beta Was this translation helpful? Give feedback.
All reactions