samedi 1 avril 2017

Laravel 5: best way to modify column name in model

What is the best way to modify column name before retrieve data from the model, ex: change id to be uid

$data = user::all(); //return array('uid'=>1,'uid'=>2 ... etc)

thanks,



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

Aucun commentaire:

Enregistrer un commentaire