{"action":"created","issue":{"url":"https://api.github.com/repos/laracasts/Presenter/issues/38","labels_url":"https://api.github.com/repos/laracasts/Presenter/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/laracasts/Presenter/issues/38/comments","events_url":"https://api.github.com/repos/laracasts/Presenter/issues/38/events","html_url":"https://github.com/laracasts/Presenter/issues/38","id":66639667,"number":38,"title":"Can't use function name in Presenter which is equal to the name of the property","user":{"login":"pixelpeter","id":6502630,"avatar_url":"https://avatars.githubusercontent.com/u/6502630?v=3","gravatar_id":"","url":"https://api.github.com/users/pixelpeter","html_url":"https://github.com/pixelpeter","followers_url":"https://api.github.com/users/pixelpeter/followers","following_url":"https://api.github.com/users/pixelpeter/following{/other_user}","gists_url":"https://api.github.com/users/pixelpeter/gists{/gist_id}","starred_url":"https://api.github.com/users/pixelpeter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pixelpeter/subscriptions","organizations_url":"https://api.github.com/users/pixelpeter/orgs","repos_url":"https://api.github.com/users/pixelpeter/repos","events_url":"https://api.github.com/users/pixelpeter/events{/privacy}","received_events_url":"https://api.github.com/users/pixelpeter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-06T16:04:34Z","updated_at":"2015-04-23T00:35:23Z","closed_at":null,"body":"It seems like something has changed with Laravel 5.\r\n\r\nCurrently I'm not able to use a function name which is equal to the name of the property.\r\nSo this is not working and I can't figure it out why\r\n\r\n\r\n```\r\npublic function description()\r\n{\r\n    return $this->description;\r\n}\r\n```\r\n\r\n\r\nThis will throw an `Undefined property: App\\Presenter\\ApplicationPresenter::$description`\r\n\r\nThe only way I could get this to work is by using a different method name \r\n\r\n\r\n```\r\npublic function getDescription()\r\n{\r\n    return $this->description;\r\n}\r\n```\r\n\r\nor referencing the property like this\r\n\r\n\r\n```\r\npublic function description()\r\n{\r\n    return $this->entity->description;\r\n}\r\n```\r\n\r\nAm I doing something wrong or is this a bug in interaction with Laravel 5 ?"},"comment":{"url":"https://api.github.com/repos/laracasts/Presenter/issues/comments/95375607","html_url":"https://github.com/laracasts/Presenter/issues/38#issuecomment-95375607","issue_url":"https://api.github.com/repos/laracasts/Presenter/issues/38","id":95375607,"user":{"login":"oliverasistemas","id":7376937,"avatar_url":"https://avatars.githubusercontent.com/u/7376937?v=3","gravatar_id":"","url":"https://api.github.com/users/oliverasistemas","html_url":"https://github.com/oliverasistemas","followers_url":"https://api.github.com/users/oliverasistemas/followers","following_url":"https://api.github.com/users/oliverasistemas/following{/other_user}","gists_url":"https://api.github.com/users/oliverasistemas/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverasistemas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverasistemas/subscriptions","organizations_url":"https://api.github.com/users/oliverasistemas/orgs","repos_url":"https://api.github.com/users/oliverasistemas/repos","events_url":"https://api.github.com/users/oliverasistemas/events{/privacy}","received_events_url":"https://api.github.com/users/oliverasistemas/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T00:35:23Z","updated_at":"2015-04-23T00:35:23Z","body":"Same problem here. Any updates? "}}