public function commitTransaction()
    {
        // fire model save again, to give Laravel app final chance to finalise anything that needs finalising after
        // batch processing
        foreach (self::$touchList as $model) {
            $model->save();
        }

        DB::commit();
        self::$touchList = [];
        self::$inBatch = false;
    }
public function commitTransaction()
    {
        // fire model save again, to give Laravel app final chance to finalise anything that needs finalising after
        // batch processing
        foreach (self::$touchList as $model) {
            $model->save();
        }

        DB::commit();
        self::$touchList = [];
        self::$inBatch = false;
    }
public function commitTransaction ( ) { // fire model save again, to give Laravel app final chance to finalise anything that needs finalising after // batch processing foreach ( self :: $ touchList as $ model ) { $ model -> save ( ) ; } DB :: commit ( ) ; self :: $ touchList = [ ] ; self :: $ inBatch = false ; }
Commit database transaction.
Commit database transaction .