If your audit trail is seriously important to you, I would syslog it to a remote server. That way, if your site gets hacked, it's not trivial to touch the audit trail.
I don't understand. could you example for me?
Hi I've just started using laravel-auditing. looks very great. I am how ever stuck on a problem now. How do we get auditing done on changes to 3rd tables?
foreach ($user->companies as $c) { // Remove companies not posted if (!in_array($c->id, $companies)) { $user->companies()->detach($c->id); } }
foreach ($companies as $c) { // Add posted companies
if (!$user->companies->find($c)) {
$user->companies()->attach($c);
}
}
Using detach and attach methods does not seem to log them. Any ideas how I can go about this?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community