Skip to content

Queueing collections with multiple model types is not supported.  #28

Open
@dhruva81

Description

@dhruva81

Hi

I am first time using this package.
I am trying to get search results from multiple models.

 $this->results = Search::new()
          ->add(User::where('type', 'student'), ['name', 'email'])
          ->add(Question::class, ['id', 'text'])
          ->add(Chapter::class, ['name'])
          ->get($this->searchTerm);

But I am receiving following error.

LogicException
Queueing collections with multiple model types is not supported. 

Kindly let me know, where I am doing wrong.
Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions