public function registerGlobalScopes($builder)
    {
        foreach ($this->getGlobalScopes() as $identifier => $scope) {
            $builder->withGlobalScope($identifier, $scope);
        }

        return $builder;
    }
public function registerGlobalScopes($builder)
    {
        foreach ($this->getGlobalScopes() as $identifier => $scope) {
            $builder->withGlobalScope($identifier, $scope);
        }

        return $builder;
    }
public function registerGlobalScopes ( $ builder ) { foreach ( $ this -> getGlobalScopes ( ) as $ identifier => $ scope ) { $ builder -> withGlobalScope ( $ identifier , $ scope ) ; } return $ builder ; }
Register the global scopes for this builder instance.

@param  \Illuminate\Database\Eloquent\Builder  $builder
@return \Illuminate\Database\Eloquent\Builder
Register the global scopes for this builder instance .