Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

TRANSACTON LARAVEL QUERY BUILDER

DB::beginTransaction();

try {
    DB::insert(...);    
    DB::commit();
} catch (Throwable $e) {
    DB::rollback();
    throw $e;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #TRANSACTON #LARAVEL #QUERY #BUILDER
ADD COMMENT
Topic
Name
6+6 =