{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/7223","labels_url":"https://api.github.com/repos/laravel/framework/issues/7223/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/7223/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/7223/events","html_url":"https://github.com/laravel/framework/pull/7223","id":56128054,"number":7223,"title":"[5.0] Pretty Print By Default","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-31T15:19:37Z","updated_at":"2015-01-31T23:53:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/7223","html_url":"https://github.com/laravel/framework/pull/7223","diff_url":"https://github.com/laravel/framework/pull/7223.diff","patch_url":"https://github.com/laravel/framework/pull/7223.patch"},"body":"I think the morphToJson method should pretty print by default. This would mean people get readable output as a response when they do something like this in their controller:\r\n\r\n```php\r\n    return User::all();\r\n```\r\n\r\n---\r\n\r\n// cc @jbrooksuk"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/72343351","html_url":"https://github.com/laravel/framework/pull/7223#issuecomment-72343351","issue_url":"https://api.github.com/repos/laravel/framework/issues/7223","id":72343351,"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":"2015-01-31T23:53:06Z","updated_at":"2015-01-31T23:53:06Z","body":"That's not useful though. I want to be able to return an array from my controller and have pretty json. A macro on the response factory isn't going to help me there."}}