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

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.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Cipa cipa Joined 11 Dec 2017

Moderators

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

Your logo here?

Laravel.io

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

© 2024 Laravel.io - All rights reserved.