Laravel this is not only a practical framework, it is also a programming style
What is the best way to modify column name before retrieve data from the model, ex: change id to be uid
id
uid
$data = user::all(); //return array('uid'=>1,'uid'=>2 ... etc)
thanks,
Aucun commentaire:
Enregistrer un commentaire