Answers for "transaction in db how will use in 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 "transaction in db how will use in laravel"

Browse Popular Code Answers by Language