The solution:
MySQL 5.7.13 and later
Using the unquoting extraction operator ->>
->select('data->>navigation_login as navigation_login')
Or older mysql version 5.7 < MYSQL < 5.7.13
->select(\DB::raw("JSON_UNQUOTE(JSON_EXTRACT(data, '$.navigation_login')) as navigation_login"))
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community