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]; 



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1SmjpXZ
via IFTTT

Aucun commentaire:

Enregistrer un commentaire