Laravel MySQL Use Index Scope is a super simple package that allows for use MySQL USE INDEX and FORCE INDEX statements. Simply reference the required trait in your model: Model: use VPominchuk\ModelUseIndex; class MyModel extends Model { use ModelUseIndex; }

Database table structure: You need to create a named index with required name.

Force MySQL to use an index if it possible.

I am a highly results-driven professional with 12+ years of collective experience in the grounds of web application development especially in laravel, native android application development in java, and desktop application development in the dot net framework.
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