orchidsoftware / platform

Orchid is a @laravel package that allows for rapid application development of back-office applications, admin/user panels, and dashboards.
https://orchid.software
MIT License
4.45k stars 655 forks source link

Use `whereLike` for case-insensitive search #2924

Closed tabuna closed 3 days ago

tabuna commented 3 days ago

This updates search functionality to use the whereLike method, introduced in Laravel v11.17.0, for performing case-insensitive searches. For Laravel versions below 11.17.0, the existing implementation using like is retained.

The whereLike method adapts to the specifics of different databases: