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!
The Laravel portal for problem solving, knowledge sharing and community building.
The community