The users
is json encoded
$agent_id = $request->get('user');
$model = AgentPermission::select('module_category')->where('users', 'like', '%$agent_id%')->get();
I want to to show "module category" where json encoded data is present in "users" column if it is working the whole code is working fine because when i use this
$model = AgentPermission::select('module_category')->where('users', 'like', '%"10"%')->get(); it is working perfect