protected function user(Builder $query)
    {
        // We'll try to locate the user by their object guid,
        // otherwise we'll locate them by their username.
        $query
            ->where(Resolver::getDatabaseIdColumn(), '=', $this->getGuid())
            ->orWhere(Resolver::getDatabaseUsernameColumn(), '=', $this->getUsername());
    }
protected function user(Builder $query)
    {
        // We'll try to locate the user by their object guid,
        // otherwise we'll locate them by their username.
        $query
            ->where(Resolver::getDatabaseIdColumn(), '=', $this->getGuid())
            ->orWhere(Resolver::getDatabaseUsernameColumn(), '=', $this->getUsername());
    }
protected function user ( Builder $ query ) { // We'll try to locate the user by their object guid, // otherwise we'll locate them by their username. $ query -> where ( Resolver :: getDatabaseIdColumn ( ) , '=' , $ this -> getGuid ( ) ) -> orWhere ( Resolver :: getDatabaseUsernameColumn ( ) , '=' , $ this -> getUsername ( ) ) ; }
Applies the user scope to the given Eloquent query builder.

@param Builder $query
Applies the user scope to the given Eloquent query builder .