Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

transaction laravel

DB::beginTransaction();
try { /** Statement */   DB::commit(); } 
catch (Exception $e) { /** Statement if failed */ DB::rollback(); }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #transaction #laravel
ADD COMMENT
Topic
Name
4+4 =