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"
')


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire