Answer the question
In order to leave comments, you need to log in
How can I save all the changes that happen in the base of the Laravel project?
It is necessary to save all the actions taking place in the database (mysql) of the project (laravel), tell me how best to implement this?
Answer the question
In order to leave comments, you need to log in
app('events')->listen('eloquent.saved: *', ...);
app('events')->listen('eloquent.deleted: *', ...);
app('events')->listen(['eloquent.pivotAttached: *', 'eloquent.pivotDetached: *', 'eloquent.pivotUpdated: *'], ...);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question