Devise
Class

Devise\Search\UniversalSearch

class UniversalSearch

Class UniversalSearch lets us register new searchable models and then search through all of them

Methods

__construct(Pagination $Pagination)

Create a new universal search

void register(Searchable $item)

Provides a way to register new searchable items in our collection of Searchable items

array search($for $for, int $page = 1, int $perPage = 10)

Search through all registered searchers and put them together in results

Details

at line 23
public __construct(Pagination $Pagination)

Create a new universal search

Parameters

Pagination $Pagination

at line 35
public void register(Searchable $item)

Provides a way to register new searchable items in our collection of Searchable items

Parameters

Searchable $item

Return Value

void

Search through all registered searchers and put them together in results

Parameters

$for $for
int $page
int $perPage

Return Value

array

Exceptions

DeviseException