Approved by...? #48
Replies: 2 comments 1 reply
-
Just noticed that the rolledback event constructor has all the useful info for this public function __construct(
public Model $approval,
public Authenticatable|null $user,
) Why wouldn't the other events have the same info available? It can be useful in a lot of scenarios |
Beta Was this translation helpful? Give feedback.
1 reply
-
This was added in release 1.4.3 via #51 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I've been hunting for a package to handle approvals in models and this fits the needs almost perfectly!
However, in my use case, I also need to track who approved/rejected the change.
There doesn't seem to be a way to do this in this package, am I right?
I think I could use the events and get the currently authenticated user when it gets fired, but that will probably not work 100% of the time. Ideally, we would be able to pass that info to the approve() method.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions