dimanche 24 avril 2016

Laravel Handling Undefined offset: 0

In my view in my input value field I am using and in my controller I have the below code.

Is there a way that I can hide the offset DB error if there is no data in the DB? Currently the db is empty.

Controller:

    $siteSocialSettingsDB    = socialSettings::get();
    $siteSocialSettingsData  = $siteSocialSettingsDB[0]; 



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire