Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get specific columns using with() function in laravel eloquent

Post::with('user:id,username')->get();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #specific #columns #function #laravel #eloquent
ADD COMMENT
Topic
Name
2+1 =