{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/20187","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/20187/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/20187/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/20187/events","html_url":"https://github.com/laravel/framework/issues/20187","id":244307158,"number":20187,"title":"Eloquent ORM in first method toArray report errors","user":{"login":"emtalk-qf","id":10927363,"avatar_url":"https://avatars2.githubusercontent.com/u/10927363?v=4","gravatar_id":"","url":"https://api.github.com/users/emtalk-qf","html_url":"https://github.com/emtalk-qf","followers_url":"https://api.github.com/users/emtalk-qf/followers","following_url":"https://api.github.com/users/emtalk-qf/following{/other_user}","gists_url":"https://api.github.com/users/emtalk-qf/gists{/gist_id}","starred_url":"https://api.github.com/users/emtalk-qf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emtalk-qf/subscriptions","organizations_url":"https://api.github.com/users/emtalk-qf/orgs","repos_url":"https://api.github.com/users/emtalk-qf/repos","events_url":"https://api.github.com/users/emtalk-qf/events{/privacy}","received_events_url":"https://api.github.com/users/emtalk-qf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-20T09:56:56Z","updated_at":"2017-07-20T10:31:39Z","closed_at":"2017-07-20T10:31:39Z","body":"- Laravel Version: 5.4.*\r\n- PHP Version:5.6\r\n- Database Driver & Version: mysql 5.7\r\n\r\n### Description:\r\nExecution code：self::first()->toArray();\r\nIf the data in the data table is empty, then the error is reported：Call to a member function toArray() on null\r\n\r\n### Steps To Reproduce:\r\n"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/316664159","html_url":"https://github.com/laravel/framework/issues/20187#issuecomment-316664159","issue_url":"https://api.github.com/repos/laravel/framework/issues/20187","id":316664159,"user":{"login":"themsaid","id":4332182,"avatar_url":"https://avatars3.githubusercontent.com/u/4332182?v=4","gravatar_id":"","url":"https://api.github.com/users/themsaid","html_url":"https://github.com/themsaid","followers_url":"https://api.github.com/users/themsaid/followers","following_url":"https://api.github.com/users/themsaid/following{/other_user}","gists_url":"https://api.github.com/users/themsaid/gists{/gist_id}","starred_url":"https://api.github.com/users/themsaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/themsaid/subscriptions","organizations_url":"https://api.github.com/users/themsaid/orgs","repos_url":"https://api.github.com/users/themsaid/repos","events_url":"https://api.github.com/users/themsaid/events{/privacy}","received_events_url":"https://api.github.com/users/themsaid/received_events","type":"User","site_admin":false},"created_at":"2017-07-20T10:31:39Z","updated_at":"2017-07-20T10:31:39Z","body":"Yes `first()` might return null."}}
{"actor":{"display_login":"themsaid"}}