lundi 2 août 2021

selectRaw changing return result conditionally

Say if I have gender stored as intergers, how to format gender as string?

->selectRaw('
  User.email as "Email",
  User.gender as "Gender"
')


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

Aucun commentaire:

Enregistrer un commentaire