Laravel Eloquent - Working with an array of JSON objects

前端 未结 1 956
自闭症患者
自闭症患者 2021-01-14 21:30

I have an array of JSON objects within my database (as depicted by the image below)

How do I search for a specific value within it? Say I want the record wh

1条回答
  •  北海茫月
    2021-01-14 22:00

    Use this:

    ->whereJsonContains('column', ['starts_at' => '2018-11-24 08:00:00'])
    

    0 讨论(0)
提交回复
热议问题