{"action":"opened","issue":{"url":"https://api.github.com/repos/FrozenNode/Laravel-Administrator/issues/910","labels_url":"https://api.github.com/repos/FrozenNode/Laravel-Administrator/issues/910/labels{/name}","comments_url":"https://api.github.com/repos/FrozenNode/Laravel-Administrator/issues/910/comments","events_url":"https://api.github.com/repos/FrozenNode/Laravel-Administrator/issues/910/events","html_url":"https://github.com/FrozenNode/Laravel-Administrator/issues/910","id":100659953,"number":910,"title":"custom attributes","user":{"login":"blonkm","id":9397116,"avatar_url":"https://avatars.githubusercontent.com/u/9397116?v=3","gravatar_id":"","url":"https://api.github.com/users/blonkm","html_url":"https://github.com/blonkm","followers_url":"https://api.github.com/users/blonkm/followers","following_url":"https://api.github.com/users/blonkm/following{/other_user}","gists_url":"https://api.github.com/users/blonkm/gists{/gist_id}","starred_url":"https://api.github.com/users/blonkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blonkm/subscriptions","organizations_url":"https://api.github.com/users/blonkm/orgs","repos_url":"https://api.github.com/users/blonkm/repos","events_url":"https://api.github.com/users/blonkm/events{/privacy}","received_events_url":"https://api.github.com/users/blonkm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-12T23:47:07Z","updated_at":"2015-08-12T23:47:07Z","closed_at":null,"body":"How can I set the column of a relation to a custom attribute? Obviously a SELECT cannot find it in the table. I have a model that does not even have a name, it derives its name from other tables, so I created a custom attribute for it, like this:\r\n```\r\n    protected $appends = ['name', 'code', 'winner', 'loser', 'pointsA', 'pointsB'];\r\n\r\n    public function getNameAttribute() {\r\n            return $this->teamA->name . ' - ' . $this->teamB->name;\r\n        }\r\n```"}}