Answers for "how to rollback if one table in laravel didn't save data successfully"

PHP
0

how to rollback if one table in laravel didn't save data successfully

DB::beginTransaction();
    try{
    here you can add your code to exicute and commit db transaction
    } catch (Exception $e) {
        DB::rollback();

    }
Posted by: Guest on December-30-2020
0

how to rollback if one table in laravel didn't save data successfully

DB::rollBack();
Posted by: Guest on December-30-2020

Code answers related to "how to rollback if one table in laravel didn't save data successfully"

Browse Popular Code Answers by Language