Eloquent query to select PHP array value based on db key

后端 未结 0 446
轮回少年
轮回少年 2020-12-13 05:27

I\'m trying to get rid of a raw sql case/when in my eloquent query, but am not sure what the best way is to do this. I have:

$data = Table::query()->select         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题