laravel relation select fields

Solutions on MaxInterview for laravel relation select fields by the best coders in the world

showing results for - "laravel relation select fields"
Mélissa
29 Mar 2019
1public function user()
2{
3    return $this->belongsTo('User')->select(['id', 'username']);
4}
5