I have a JSON data in the table field. For example, -
[ 'send_message_via': 'web' ]
Or if it is empty, then will be like that-
Now, I am getting data this way-
$configuration = json_decode(shop()->setting->whatsapp_configuration, true)->send_message_via;
Now, if it is empty like this
, then I am getting error. Otherwise work fine.
How can I check whether it's empty or not. If not empty, then only display the
Thanks in advanced.