public static function withoutTouchingOn(array $models, callable $callback)
    {
        static::$ignoreOnTouch = array_values(array_merge(static::$ignoreOnTouch, $models));

        try {
            call_user_func($callback);
        } finally {
            static::$ignoreOnTouch = array_values(array_diff(static::$ignoreOnTouch, $models));
        }
    }
public static function withoutTouchingOn(array $models, callable $callback)
    {
        static::$ignoreOnTouch = array_values(array_merge(static::$ignoreOnTouch, $models));

        try {
            call_user_func($callback);
        } finally {
            static::$ignoreOnTouch = array_values(array_diff(static::$ignoreOnTouch, $models));
        }
    }
public static function withoutTouchingOn ( array $ models , callable $ callback ) { static :: $ ignoreOnTouch = array_values ( array_merge ( static :: $ ignoreOnTouch , $ models ) ) ; try { call_user_func ( $ callback ) ; } finally { static :: $ ignoreOnTouch = array_values ( array_diff ( static :: $ ignoreOnTouch , $ models ) ) ; } }
Disables relationship model touching for the given model classes during given callback scope.

@param  array  $models
@param  callable  $callback
@return void
Disables relationship model touching for the given model classes during given callback scope .