I have two table which named favorites , categories I am receiving a post request from a device that have a field named device_id I want to check that this device followed which categories
& I want to return array like this
for example this user just followed category 2
category1 : false, category2 : true , category3 : false, category4 : false,
and ......
via ari ari