I have a branch code column (in array value) in table Users.
e.g branch_code in Table User= ["01234","03333","02030"]
And I have a report page where user can select the branch with a select option in blade based on the user's branch code
So here is my controller
$user = Auth::user();
$user_branch = $user->branch_code;
$region = Branch::whereIn('branch_code',[$user->branch_code])->get();
but i get null data, if i run dd($user_branch) will show
["01234","03333","02030"]
How to show the branch from array value in DB?