laravel get json column on array code example
Example 1: laravel where json array column
->whereJsonContains('user_id', 3)
Example 2: laravel where json array column
whereRaw("JSON_CONTAINS(user_id, '[3]' )")->get();
->whereJsonContains('user_id', 3)
whereRaw("JSON_CONTAINS(user_id, '[3]' )")->get();