public function applyGlobalScopes($builder)
    {
        foreach ($this->getGlobalScopes() as $scope) {
            $scope->apply($builder, $this);
        }

        return $builder;
    }
public function applyGlobalScopes($builder)
    {
        foreach ($this->getGlobalScopes() as $scope) {
            $scope->apply($builder, $this);
        }

        return $builder;
    }
public function applyGlobalScopes ( $ builder ) { foreach ( $ this -> getGlobalScopes ( ) as $ scope ) { $ scope -> apply ( $ builder , $ this ) ; } return $ builder ; }
Apply all of the global scopes to an ORM builder.

@param  \Nova\Database\ORM\Builder  $builder
@return \Nova\Database\ORM\Builder
Apply all of the global scopes to an ORM builder .