{"action":"closed","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/8671","labels_url":"https://api.github.com/repos/laravel/framework/issues/8671/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/8671/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/8671/events","html_url":"https://github.com/laravel/framework/issues/8671","id":74503387,"number":8671,"title":"belongsTo with different foreign key column not work after update to 5.0.30","user":{"login":"yeknava","id":4211913,"avatar_url":"https://avatars.githubusercontent.com/u/4211913?v=3","gravatar_id":"","url":"https://api.github.com/users/yeknava","html_url":"https://github.com/yeknava","followers_url":"https://api.github.com/users/yeknava/followers","following_url":"https://api.github.com/users/yeknava/following{/other_user}","gists_url":"https://api.github.com/users/yeknava/gists{/gist_id}","starred_url":"https://api.github.com/users/yeknava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeknava/subscriptions","organizations_url":"https://api.github.com/users/yeknava/orgs","repos_url":"https://api.github.com/users/yeknava/repos","events_url":"https://api.github.com/users/yeknava/events{/privacy}","received_events_url":"https://api.github.com/users/yeknava/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/laravel/framework/labels/database","name":"database","color":"eb6420"},{"url":"https://api.github.com/repos/laravel/framework/labels/needs%20more%20info","name":"needs more info","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-08T21:34:30Z","updated_at":"2015-05-31T18:10:24Z","closed_at":"2015-05-31T18:10:24Z","body":"after update my project to 5.0.29 (and 5.0.30 also) my model with belongsTo relationship wont work and return error when associating.\r\n\r\nmy belongsTo method:\r\n\r\npublic function owner() {\r\n\treturn $this->belongsTo('App\\User', 'owner', 'id');\r\n}\r\n\r\nerror say can not define $owner but even after i add public $owner; to Model its wont work also;"}}