{"action":"created","issue":{"url":"https://api.github.com/repos/spatie/laravel-query-builder/issues/53","repository_url":"https://api.github.com/repos/spatie/laravel-query-builder","labels_url":"https://api.github.com/repos/spatie/laravel-query-builder/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/spatie/laravel-query-builder/issues/53/comments","events_url":"https://api.github.com/repos/spatie/laravel-query-builder/issues/53/events","html_url":"https://github.com/spatie/laravel-query-builder/issues/53","id":315036629,"node_id":"MDU6SXNzdWUzMTUwMzY2Mjk=","number":53,"title":"Ability to include certain fields from related model","user":{"login":"Tarasovych","id":24782123,"node_id":"MDQ6VXNlcjI0NzgyMTIz","avatar_url":"https://avatars2.githubusercontent.com/u/24782123?v=4","gravatar_id":"","url":"https://api.github.com/users/Tarasovych","html_url":"https://github.com/Tarasovych","followers_url":"https://api.github.com/users/Tarasovych/followers","following_url":"https://api.github.com/users/Tarasovych/following{/other_user}","gists_url":"https://api.github.com/users/Tarasovych/gists{/gist_id}","starred_url":"https://api.github.com/users/Tarasovych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tarasovych/subscriptions","organizations_url":"https://api.github.com/users/Tarasovych/orgs","repos_url":"https://api.github.com/users/Tarasovych/repos","events_url":"https://api.github.com/users/Tarasovych/events{/privacy}","received_events_url":"https://api.github.com/users/Tarasovych/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-17T12:26:57Z","updated_at":"2018-06-20T09:48:47Z","closed_at":null,"author_association":"NONE","body":"In Eloquent I can use [`with()`](https://laravel.com/api/5.6/Illuminate/Database/Eloquent/Builder.html#method_with) to fetch certain fields from related model.\r\nI'd like to able do the same with `allowedIncludes()` like `allowedIncludes('related_model:id,name')`."},"comment":{"url":"https://api.github.com/repos/spatie/laravel-query-builder/issues/comments/398691271","html_url":"https://github.com/spatie/laravel-query-builder/issues/53#issuecomment-398691271","issue_url":"https://api.github.com/repos/spatie/laravel-query-builder/issues/53","id":398691271,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODY5MTI3MQ==","user":{"login":"brunen9","id":7408605,"node_id":"MDQ6VXNlcjc0MDg2MDU=","avatar_url":"https://avatars1.githubusercontent.com/u/7408605?v=4","gravatar_id":"","url":"https://api.github.com/users/brunen9","html_url":"https://github.com/brunen9","followers_url":"https://api.github.com/users/brunen9/followers","following_url":"https://api.github.com/users/brunen9/following{/other_user}","gists_url":"https://api.github.com/users/brunen9/gists{/gist_id}","starred_url":"https://api.github.com/users/brunen9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunen9/subscriptions","organizations_url":"https://api.github.com/users/brunen9/orgs","repos_url":"https://api.github.com/users/brunen9/repos","events_url":"https://api.github.com/users/brunen9/events{/privacy}","received_events_url":"https://api.github.com/users/brunen9/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T09:48:46Z","updated_at":"2018-06-20T09:48:46Z","author_association":"NONE","body":"@Tarasovych did you try the [Selecting specific columns](https://github.com/spatie/laravel-query-builder#selecting-specific-columns)?"}}
{"actor":{"display_login":"brunen9"}}