public function getScoutModelsByIds(Builder $builder, array $ids)
    {
        $query = static::usesSoftDelete()
            ? $this->withTrashed() : $this->newQuery();

        if ($builder->queryCallback) {
            call_user_func($builder->queryCallback, $query);
        }

        return $query->whereIn(
            $this->getScoutKeyName(), $ids
        )->get();
    }
public function getScoutModelsByIds(Builder $builder, array $ids)
    {
        $query = static::usesSoftDelete()
            ? $this->withTrashed() : $this->newQuery();

        if ($builder->queryCallback) {
            call_user_func($builder->queryCallback, $query);
        }

        return $query->whereIn(
            $this->getScoutKeyName(), $ids
        )->get();
    }
public function getScoutModelsByIds ( Builder $ builder , array $ ids ) { $ query = static :: usesSoftDelete ( ) ? $ this -> withTrashed ( ) : $ this -> newQuery ( ) ; if ( $ builder -> queryCallback ) { call_user_func ( $ builder -> queryCallback , $ query ) ; } return $ query -> whereIn ( $ this -> getScoutKeyName ( ) , $ ids ) -> get ( ) ; }
Get the requested models from an array of object IDs.

@param  \Laravel\Scout\Builder  $builder
@param  array  $ids
@return mixed
Get the requested models from an array of object IDs .