Illuminate\Database\Eloquent\Builder::withoutGlobalScopes PHP 메소드

withoutGlobalScopes() 공개 메소드

Remove all or passed registered global scopes.
public withoutGlobalScopes ( array $scopes = null )
$scopes array
    public function withoutGlobalScopes(array $scopes = null)
    {
        if (is_array($scopes)) {
            foreach ($scopes as $scope) {
                $this->withoutGlobalScope($scope);
            }
        } else {
            $this->scopes = [];
        }
        return $this;
    }

Usage Example

예제 #1
0
 /**
  * Remove all or passed registered global scopes.
  *
  * @param array|null $scopes
  * @return $this 
  * @static 
  */
 public static function withoutGlobalScopes($scopes = null)
 {
     return \Illuminate\Database\Eloquent\Builder::withoutGlobalScopes($scopes);
 }
All Usage Examples Of Illuminate\Database\Eloquent\Builder::withoutGlobalScopes