DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
laravel select only some columns relationship
public function post() { return $this->hasMany(Post::class)->select(['id','user_id']); }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#laravel
#select
#columns
#relationship
ADD COMMENT
Topic
COMMENT
Name
9+6 =
Submit