<?php
if(!empty(App\Http\Models\ApplicationData::getDataCodeHtml($application_data->application_data_id)))
{
?>
<p>{!! App\Http\Models\ApplicationData::getDataCodeHtml($application_data->application_data_id) !!}</p>
}
?>
In the above code I am simply fetch data from model but what happen here In some application data are showing but in somewhere it show Trying to get property of non-object
. I don't know why? I simply wants if data is not present then it show empty. So, How can I do this? Please help me.
Thank You
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire