{"action":"created","issue":{"url":"https://api.github.com/repos/cviebrock/eloquent-sluggable/issues/148","labels_url":"https://api.github.com/repos/cviebrock/eloquent-sluggable/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/cviebrock/eloquent-sluggable/issues/148/comments","events_url":"https://api.github.com/repos/cviebrock/eloquent-sluggable/issues/148/events","html_url":"https://github.com/cviebrock/eloquent-sluggable/pull/148","id":86724801,"number":148,"title":"Update for laravel 5.1","user":{"login":"Bouhnosaure","id":3416579,"avatar_url":"https://avatars.githubusercontent.com/u/3416579?v=3","gravatar_id":"","url":"https://api.github.com/users/Bouhnosaure","html_url":"https://github.com/Bouhnosaure","followers_url":"https://api.github.com/users/Bouhnosaure/followers","following_url":"https://api.github.com/users/Bouhnosaure/following{/other_user}","gists_url":"https://api.github.com/users/Bouhnosaure/gists{/gist_id}","starred_url":"https://api.github.com/users/Bouhnosaure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bouhnosaure/subscriptions","organizations_url":"https://api.github.com/users/Bouhnosaure/orgs","repos_url":"https://api.github.com/users/Bouhnosaure/repos","events_url":"https://api.github.com/users/Bouhnosaure/events{/privacy}","received_events_url":"https://api.github.com/users/Bouhnosaure/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-09T20:23:29Z","updated_at":"2015-06-10T20:34:04Z","closed_at":"2015-06-10T20:34:04Z","pull_request":{"url":"https://api.github.com/repos/cviebrock/eloquent-sluggable/pulls/148","html_url":"https://github.com/cviebrock/eloquent-sluggable/pull/148","diff_url":"https://github.com/cviebrock/eloquent-sluggable/pull/148.diff","patch_url":"https://github.com/cviebrock/eloquent-sluggable/pull/148.patch"},"body":"The list method has changed for laravel 5.1, this change causes a fail every time a slug is created or retrieved\r\n\r\nLaravel upgrade guide says : \r\n\"The lists method now returns a Collection instance. If you would like to convert the Collection into a plain array, use the all method\"\r\n\r\ni made a check for L5 and 5.1 with \"method_exists\" i'm not sure if is clean, but it works."},"comment":{"url":"https://api.github.com/repos/cviebrock/eloquent-sluggable/issues/comments/110904103","html_url":"https://github.com/cviebrock/eloquent-sluggable/pull/148#issuecomment-110904103","issue_url":"https://api.github.com/repos/cviebrock/eloquent-sluggable/issues/148","id":110904103,"user":{"login":"cviebrock","id":166810,"avatar_url":"https://avatars.githubusercontent.com/u/166810?v=3","gravatar_id":"","url":"https://api.github.com/users/cviebrock","html_url":"https://github.com/cviebrock","followers_url":"https://api.github.com/users/cviebrock/followers","following_url":"https://api.github.com/users/cviebrock/following{/other_user}","gists_url":"https://api.github.com/users/cviebrock/gists{/gist_id}","starred_url":"https://api.github.com/users/cviebrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cviebrock/subscriptions","organizations_url":"https://api.github.com/users/cviebrock/orgs","repos_url":"https://api.github.com/users/cviebrock/repos","events_url":"https://api.github.com/users/cviebrock/events{/privacy}","received_events_url":"https://api.github.com/users/cviebrock/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T20:34:04Z","updated_at":"2015-06-10T20:34:04Z","body":"The PR for #145 fixes this for Laravel 5.0 and 5.1, and (sorry) is a bit of a cleaner solution I think.  I'll be merging it shortly."}}