Is there a transaction log in Laravel?

0

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?

    
asked by Santiago Muñoz 14.11.2018 в 01:39
source

1 answer

1

Yes, through the transaction method. Example:

DB::transaction(function () {
    DB::table('mensajes')->delete();
});

Greetings

    
answered by 14.11.2018 в 12:32