I recently implemented Laravel Scout, Laravel’s own full text search package, into one of my projects. They are used to defining specific query constraints for all queries run on this model.

After installing Scout and preparing the model for it, you must import all models into the index to be able to search them.

If you do this, you can add the withoutGlobalScopes() method to the query to disable all global scopes for the import query.

If you want to search across all languages, modify the code like this: The query method allows us to modify the query builder and disable all global scopes while searching for our articles.
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