How to select specific columns in laravel eloquent

后端 未结 0 1217
春和景丽
春和景丽 2020-12-22 19:33

lets say I have 7 columns in table, and I want to select only two of them, something like this

SELECT `name`,`surname` FROM `table` WHERE `id` = \'1\';


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