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

Model events and observers should be the right way to achieve this goal. Take a look at: http://laravel.com/docs/eloquent#model-events

Last updated 2 years ago.
0

longilineo said:

Model events and observers should be the right way to achieve this goal. Take a look at: http://laravel.com/docs/eloquent#model-events

Yes, this might be working - but I didn't find any example, describing what to do to use this feature.

But as far, as I see, I need to check out the current and the future values manually - as well as comparing them. Using mySQL triggers, I do have the old and the new values there as an instance...

Last updated 2 years ago.
0

if you don't want to implement from scratch your own audit mechanism, give a try to this package: https://packagist.org/packages/venturecraft/revisionable

Last updated 2 years ago.
0

Thanks - I will checkout this...

Sometimes, it's difficult for a non native speaker to join name and action. I would have not used the term "audit" for the thing I want to do ;-)

Ciao

dirk

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

diwaffm diwaffm Joined 10 Apr 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.