Answers for "select field of relation with"

PHP
0

laravel relation select fields

public function user()
{
    return $this->belongsTo('User')->select(['id', 'username']);
}
Posted by: Guest on September-27-2021

Code answers related to "select field of relation with"

Browse Popular Code Answers by Language