Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

eloquent get only some columns

Table::select('name','surname')->where('id', 1)->get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #eloquent #columns
ADD COMMENT
Topic
Name
9+9 =