{"action":"opened","issue":{"url":"https://api.github.com/repos/the-control-group/voyager/issues/1482","repository_url":"https://api.github.com/repos/the-control-group/voyager","labels_url":"https://api.github.com/repos/the-control-group/voyager/issues/1482/labels{/name}","comments_url":"https://api.github.com/repos/the-control-group/voyager/issues/1482/comments","events_url":"https://api.github.com/repos/the-control-group/voyager/issues/1482/events","html_url":"https://github.com/the-control-group/voyager/issues/1482","id":244018137,"number":1482,"title":"Use keyName instead of assuming it is id","user":{"login":"edmandiesamonte","id":11081512,"avatar_url":"https://avatars3.githubusercontent.com/u/11081512?v=4","gravatar_id":"","url":"https://api.github.com/users/edmandiesamonte","html_url":"https://github.com/edmandiesamonte","followers_url":"https://api.github.com/users/edmandiesamonte/followers","following_url":"https://api.github.com/users/edmandiesamonte/following{/other_user}","gists_url":"https://api.github.com/users/edmandiesamonte/gists{/gist_id}","starred_url":"https://api.github.com/users/edmandiesamonte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edmandiesamonte/subscriptions","organizations_url":"https://api.github.com/users/edmandiesamonte/orgs","repos_url":"https://api.github.com/users/edmandiesamonte/repos","events_url":"https://api.github.com/users/edmandiesamonte/events{/privacy}","received_events_url":"https://api.github.com/users/edmandiesamonte/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-19T12:06:56Z","updated_at":"2017-07-19T12:06:56Z","closed_at":null,"body":"- Laravel Version: 5.4\r\n- Voyager Version: 0.11.14\r\n- PHP Version: 7.1\r\n- Database Driver & Version: \r\n\r\n### Description:\r\nOn the generic `browse.blade.php` inside `bread`, there's a lot of usage to `$data->id`. This scenario assumes that the primary key is `id`. To support non-`id` primary keys, replace it with\r\n`$data->{$data->getKeyName()}`\r\n\r\nThis might also be applicable to other templates.\r\n\r\n### Steps To Reproduce:\r\n1. Create a table with non-`id` primary key\r\n2. Add a BREAD. Primarily on browse."}}
{"actor":{"display_login":"edmandiesamonte"}}