Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel update and insert transaction

DB::beginTransaction();
try{
   DB::commit();
}catch(Exception $e){
   // echo $e->getMessage();
   DB::rollBack();
}
 
PREVIOUS NEXT
Tagged: #laravel #update #insert #transaction
ADD COMMENT
Topic
Name
2+2 =