Support the ongoing development of Laravel.io →
Configuration Database Packages
Last updated 2 years ago.
0

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.

Last updated 2 years ago.
0

I don't understand. could you example for me?

Last updated 2 years ago.
0

Hello @yuomtheara, I'm using laravel-auditing, this package has been a hand on the wheel for me.

https://github.com/owen-it/laravel-auditing

0

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?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

yuomtheara yuomtheara Joined 12 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.