OKyJIucT
1/14/2016 - 10:13 AM

Select in with

Select in with

WorkTime::with(['user' => function ($query) {
    $query->select('pass');
}])->select('sip_id')->groupBy('sip_id')->get();


или в связях 

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