User ID and User Type not being added in audits table #864
-
Actual BehaviourI am working with Laravel Audit Package and i am using laravel 8 version , the problem is that the project is not using any sort of middleware for the api ,It is working but does not enter user_id and user_type columns in audits table, i have tried implementing the scenerios from the documentation but it is not working Expected BehaviourIt should also add user_id and user_type in audits column while is is adding for other columns Steps to ReproduceList all the steps needed to reproduce the issue you're having. Make sure to include code (affected models, configuration, ...). ** <?php return [
]; ** |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
User must be logged, if not, you must create your own CustomUserResolver laravel-auditing/src/Auditable.php Line 333 in 7d929c0 laravel-auditing/src/Auditable.php Lines 341 to 342 in 7d929c0 https://github.com/owen-it/laravel-auditing/blob/master/src/Resolvers/UserResolver.php |
Beta Was this translation helpful? Give feedback.
User must be logged, if not, you must create your own CustomUserResolver
laravel-auditing/src/Auditable.php
Line 333 in 7d929c0
laravel-auditing/src/Auditable.php
Lines 341 to 342 in 7d929c0
https://github.com/owen-it/laravel-auditing/blob/master/src/Resolvers/UserResolver.php