Category: Laravel, Laravel

Laravel package to search through multiple Eloquent models. Supports sorting, pagination, scoped queries, eager load relationships and searching through single or multiple columns.

You can install the package via composer: Start your search query by adding one or more models to search through. Call the add method with the class name of the model and the column you want to search through.

With the orderBy method, you can set the column to sort by (previously the third argument): You can count the number of results with the count method: You can use the parser with the parseTerms method: You can also pass in a callback as a second argument to loop through each term: Please see CHANGELOG for more information about what has changed recently.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners