I need to make a transaction log for the CRUD of the system. I know it can be done using triggers that trigger the action of saving the record in a transaction table but does Laravel have this functionality?
I need to make a transaction log for the CRUD of the system. I know it can be done using triggers that trigger the action of saving the record in a transaction table but does Laravel have this functionality?
Yes, through the transaction method. Example:
DB::transaction(function () { DB::table('mensajes')->delete(); });
Greetings