Answers for "when do we use db:transaction laravel"

PHP
0

transaction laravel

DB::beginTransaction();
try { /** Statement */   DB::commit(); } 
catch (\Exception $e) { /** Statement if failed */ DB::rollback(); }
Posted by: Guest on May-29-2021

Code answers related to "when do we use db:transaction laravel"

Browse Popular Code Answers by Language