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

تعليقات

المشاركات الشائعة من هذه المدونة

How to Create Treeview with Bootstrap and jQuery

5 Free Black and White Social Media Icons Sets with CSS and HTML

How to Add Images to Dropdown List using jQuery