How to get user for audit? #945
-
I trying to get the relative user of the audit? this is the audit.php return [
]; And this is the function that i'm trying to get the audits
the response is the getting null user field |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
What do the rows in your audit table look like? Are auditable_type and auditable_id filled in? |
Beta Was this translation helpful? Give feedback.
Oh hang on, because you've requested specific columns, you've missed off user_type.
Some simpler version of your code would be