I have a table "Notifications". In my data column, I have an array-like:
{  
   "title":"Something",
   "arr":{  
      "id":12,
      "name":"HelloWorld",
      "avatar":null
   }
}
And I want to check element (notify) which arr->id == 12 for example (or something else).
I tryed make query buildng but nothing works. Examples:
$hello = auth()->user()->unreadNotifications->where('notifiable_id', Auth::user()->id)
                             ->where('data', '%12%')->first();
or
$hello = auth()->user()->unreadNotifications->where('notifiable_id', Auth::user()->id)
                              ->where('data->arr->id', '12')->first();
Who knows how do that?
 
     
     
    