Support the ongoing development of →
Eloquent Security
Last updated 2 years ago.

You'll probably need to do this check in your code. To the best of my knowledge, SQL doesn't have a restriction available for minimum LIKE length. If you tell it "give me the stuff with an a in it" it'll do just that.

You might consider using a rule on the request to prevent the term from getting to your database. The min should sort out the issue.


Sign in to participate in this thread!


Your banner here too?

Cipa cipa Joined 11 Dec 2017


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.