DB::beginTransaction(); try{ DB::commit(); }catch(Exception $e){ // echo $e->getMessage(); DB::rollBack(); }