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

تعليقات

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

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

How to Create Treeview with Bootstrap and jQuery

How to Change Apache and MySQL Port Number in XAMPP Localhost