vendredi 16 avril 2021

Trying to get property of non-object while fetching data in laravel 5.2

<?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



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3ebf1Ln
via IFTTT

Aucun commentaire:

Enregistrer un commentaire