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.