belongsTo('User', 'user_id', 'id',[],'LEFT')->setEagerlyType(0); } public function company() { return $this->belongsTo('Company', 'company_id', 'id',[],'LEFT')->setEagerlyType(0); } }