{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/18645","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/18645/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/18645/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/18645/events","html_url":"https://github.com/laravel/framework/issues/18645","id":219211720,"number":18645,"title":"[5.3] Query get() method does not return stdClass type","user":{"login":"ted-piotrowski","id":2023571,"avatar_url":"https://avatars3.githubusercontent.com/u/2023571?v=3","gravatar_id":"","url":"https://api.github.com/users/ted-piotrowski","html_url":"https://github.com/ted-piotrowski","followers_url":"https://api.github.com/users/ted-piotrowski/followers","following_url":"https://api.github.com/users/ted-piotrowski/following{/other_user}","gists_url":"https://api.github.com/users/ted-piotrowski/gists{/gist_id}","starred_url":"https://api.github.com/users/ted-piotrowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ted-piotrowski/subscriptions","organizations_url":"https://api.github.com/users/ted-piotrowski/orgs","repos_url":"https://api.github.com/users/ted-piotrowski/repos","events_url":"https://api.github.com/users/ted-piotrowski/events{/privacy}","received_events_url":"https://api.github.com/users/ted-piotrowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-04T10:52:24Z","updated_at":"2017-04-04T12:54:22Z","closed_at":null,"body":"- Laravel Version: 5.3.31\r\n- PHP Version: PHP 5.6.30-0+deb8u1 AND PHP 7.0.15\r\n- Database Driver & Version: Not relevant\r\n\r\n### Description:\r\n\r\nIt's documented in version 5.1+ [https://laravel.com/docs/5.1/queries#retrieving-results](https://laravel.com/docs/5.1/queries#retrieving-results), but it appears that Laravel 5.3 is returning an `array` type instead of `stdClass` when calling `get()` with a query builder.\r\n\r\n```\r\nLaravel 5.4.1+\r\n\r\nobject(Illuminate\\Support\\Collection)#1072 (1) {\r\n  [\"items\":protected]=>\r\n  array(33) {\r\n    [0]=>\r\n    object(stdClass)#1076 (11) \r\n```\r\n\r\n```\r\nLaravel 5.3.31\r\n\r\nobject(Illuminate\\Support\\Collection)#951 (1) {\r\n  [\"items\":protected]=>\r\n  array(35) {\r\n    [0]=>\r\n    array(11) \r\n```\r\n\r\n### Steps To Reproduce:\r\n\r\nRun `var_dump(DB::table('table_name'))->get())` with different Laravel versions and compare."},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/291490504","html_url":"https://github.com/laravel/framework/issues/18645#issuecomment-291490504","issue_url":"https://api.github.com/repos/laravel/framework/issues/18645","id":291490504,"user":{"login":"deleugpn","id":9533181,"avatar_url":"https://avatars2.githubusercontent.com/u/9533181?v=3","gravatar_id":"","url":"https://api.github.com/users/deleugpn","html_url":"https://github.com/deleugpn","followers_url":"https://api.github.com/users/deleugpn/followers","following_url":"https://api.github.com/users/deleugpn/following{/other_user}","gists_url":"https://api.github.com/users/deleugpn/gists{/gist_id}","starred_url":"https://api.github.com/users/deleugpn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deleugpn/subscriptions","organizations_url":"https://api.github.com/users/deleugpn/orgs","repos_url":"https://api.github.com/users/deleugpn/repos","events_url":"https://api.github.com/users/deleugpn/events{/privacy}","received_events_url":"https://api.github.com/users/deleugpn/received_events","type":"User","site_admin":false},"created_at":"2017-04-04T12:54:22Z","updated_at":"2017-04-04T12:54:22Z","body":"If this is an issue only in 5.3, it no longer receives bug fixes."}}
{"actor":{"display_login":"deleugpn"}}