php - Laravel 8.x Where Json Search In Array - Stack Overflow

PHOTO EMBED

Mon Jul 08 2024 19:47:45 GMT+0000 (Coordinated Universal Time)

Saved by @xsirlalo

$category = CategoryModel::query()->whereJsonContains('slug->' . app()->getLocale(), $category)->first();
dd($category->toArray());
content_copyCOPY

https://stackoverflow.com/questions/66080731/laravel-8-x-where-json-search-in-array