how get data from database by matching first two characters in a columns usinh like query or something else : I am trying to get data from database by matching first two characters or the characters appears before comma `,`

    id | company_name | country_id | city_id | main_category
     -------------------------------------------------------
     1 | ABC          |   1        |  2      |  12,3,6
     2 | XYZ          |   1        |  2      |  1,12,9

what i want is to get the following results when the user input is `12` and if `12` exist in main_category than result should be shown but the `12` should be exits before the first comma or we can say the first two characters

    id | company_name | country_id | city_id | main_category
         -------------------------------------------------------
         1 | ABC          |   1        |  2      |  12,3,6

Query i tried

    $getResult = $compaies->where([

                ["company_name", "LIKE", "%$keyword%"],
                ['main_category', "LIKE", "%$sector%"]

        ])->get();

