Relasi Laravel Pilih bidang

public function user()
{
    return $this->belongsTo('User')->select(['id', 'username']);
}
Shadow