{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/12221","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/12221/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/12221/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/12221/events","html_url":"https://github.com/laravel/framework/pull/12221","id":132497021,"number":12221,"title":"Add 'identifier' casting type","user":{"login":"kevinsimard","id":1243717,"avatar_url":"https://avatars.githubusercontent.com/u/1243717?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsimard","html_url":"https://github.com/kevinsimard","followers_url":"https://api.github.com/users/kevinsimard/followers","following_url":"https://api.github.com/users/kevinsimard/following{/other_user}","gists_url":"https://api.github.com/users/kevinsimard/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsimard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsimard/subscriptions","organizations_url":"https://api.github.com/users/kevinsimard/orgs","repos_url":"https://api.github.com/users/kevinsimard/repos","events_url":"https://api.github.com/users/kevinsimard/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsimard/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-09T18:38:53Z","updated_at":"2016-02-10T14:51:52Z","closed_at":"2016-02-09T23:32:48Z","pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/12221","html_url":"https://github.com/laravel/framework/pull/12221","diff_url":"https://github.com/laravel/framework/pull/12221.diff","patch_url":"https://github.com/laravel/framework/pull/12221.patch"},"body":"This could be helpful for identifier attributes like foreign key columns where '0' isn't a valid value. I overridden the 'castAttribute' function in my project to use it and I thought other people could probably benefit from using this casting attribute too."},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/182405605","html_url":"https://github.com/laravel/framework/pull/12221#issuecomment-182405605","issue_url":"https://api.github.com/repos/laravel/framework/issues/12221","id":182405605,"user":{"login":"GrahamCampbell","id":2829600,"avatar_url":"https://avatars.githubusercontent.com/u/2829600?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamCampbell","html_url":"https://github.com/GrahamCampbell","followers_url":"https://api.github.com/users/GrahamCampbell/followers","following_url":"https://api.github.com/users/GrahamCampbell/following{/other_user}","gists_url":"https://api.github.com/users/GrahamCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamCampbell/subscriptions","organizations_url":"https://api.github.com/users/GrahamCampbell/orgs","repos_url":"https://api.github.com/users/GrahamCampbell/repos","events_url":"https://api.github.com/users/GrahamCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamCampbell/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T14:51:51Z","updated_at":"2016-02-10T14:51:51Z","body":"Thus, this stuff is the same as our existing integer casting really."}}