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