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
at line 35
public void
register(Searchable $item)
Provides a way to register new searchable items in our collection of Searchable items
at line 50
public array
search($for $for, int $page = 1, int $perPage = 10)
Search through all registered searchers and put them together in results