if you have literally just put the string "EXP1,EXP2,EXP3" into a database column then you need to use
->where('CheckboxValue', 'like', '%EXP3%')->get();
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I have an checkbox multiple option saved in mine database.
User1: Sample checkbox value; EXP1,EXP2,EXP3,
User2: Sample checkbox value; EXP1,EXP2,EXP4,
Is it possible to get the userid which is member of Sample checkbox value: EX3 ?
Database is:
ID, UserID, Checkbox value
I'm building this in Laravel 5.8
Please or to participate in this conversation.