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

jQuery Datatables with PHP, MySQL and AJAX Example

How to Add Images to Dropdown List using jQuery