owen-it / laravel-auditing-doc

Laravel Auditing Documentation
http://laravel-auditing.com
56 stars 61 forks source link

Detailing how 'turning off auditing' works #86

Closed ftrotter closed 2 years ago

ftrotter commented 4 years ago

There is a section in the configuration file for 'enabled'. Does programmatically changing this result in auditing being turned off globally?

The distinction between "General" configuration and "Auditable" configuration is a little confusing since both sections modify how auditing takes place, and both sections change back and forth between object level configuration and system level configuration. But there is a section on enabling/disabling auditing for a single class temporarily, and that would be a good place to put whether you can temporarily disable auditing programmatically system wide.

It is also not clear how the object level 'turn off auditing' in the Enable/Disable section of the Auditable Configuration documentation works between php runs. If I 'disable' auditing on class Truck and then visit a php page with Truck objects called (but not re-invoking the disable logic) can I expect logging to be disabled or not. Is the audit disabling persistent between sessions/runs of php? The documentation is not clear.