use user_name attribute in link model getUserName getter rather than accessing name attribute of user model.