two columns where clause merge with comma
Try this-
YourModel::select('user_id')
->selectRaw('GROUP_CONCAT(sn_no) as sn')
->groupBy('user_id')
->get();
Try this-
YourModel::select('user_id')
->selectRaw('GROUP_CONCAT(sn_no) as sn')
->groupBy('user_id')
->get();