{"action":"created","comment":{"url":"https://api.github.com/repos/neontribe/ARCVStore/pulls/comments/167275270","pull_request_review_id":95476503,"id":167275270,"diff_hunk":"@@ -279,4 +279,15 @@ public function initialCentre()\n     {\n         return $this->belongsTo('App\\Centre', 'initial_centre_id');\n     }\n+\n+    public function scopeWithPrimaryCarer($query)\n+    {\n+        $subQuery = \\DB::table('carers')\n+            ->select('name')\n+            ->whereRaw('family_id = families.id')\n+            ->oldest()","path":"app/Family.php","position":10,"original_position":10,"commit_id":"38dfc40a7e5b2e31c7e382eb23aace50f6a03033","original_commit_id":"38dfc40a7e5b2e31c7e382eb23aace50f6a03033","user":{"login":"katjam","id":861172,"avatar_url":"https://avatars3.githubusercontent.com/u/861172?v=4","gravatar_id":"","url":"https://api.github.com/users/katjam","html_url":"https://github.com/katjam","followers_url":"https://api.github.com/users/katjam/followers","following_url":"https://api.github.com/users/katjam/following{/other_user}","gists_url":"https://api.github.com/users/katjam/gists{/gist_id}","starred_url":"https://api.github.com/users/katjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/katjam/subscriptions","organizations_url":"https://api.github.com/users/katjam/orgs","repos_url":"https://api.github.com/users/katjam/repos","events_url":"https://api.github.com/users/katjam/events{/privacy}","received_events_url":"https://api.github.com/users/katjam/received_events","type":"User","site_admin":false},"body":"It's always the first input? And can not be amended?","created_at":"2018-02-09T16:22:02Z","updated_at":"2018-02-09T16:23:33Z","html_url":"https://github.com/neontribe/ARCVStore/pull/93#discussion_r167275270","pull_request_url":"https://api.github.com/repos/neontribe/ARCVStore/pulls/93","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/neontribe/ARCVStore/pulls/comments/167275270"},"html":{"href":"https://github.com/neontribe/ARCVStore/pull/93#discussion_r167275270"},"pull_request":{"href":"https://api.github.com/repos/neontribe/ARCVStore/pulls/93"}}},"pull_request":{"url":"https://api.github.com/repos/neontribe/ARCVStore/pulls/93","id":168218147,"html_url":"https://github.com/neontribe/ARCVStore/pull/93","diff_url":"https://github.com/neontribe/ARCVStore/pull/93.diff","patch_url":"https://github.com/neontribe/ARCVStore/pull/93.patch","issue_url":"https://api.github.com/repos/neontribe/ARCVStore/issues/93","number":93,"state":"open","locked":false,"title":"0.2/790 sort families on group collection sheet","user":{"login":"charlesstrange2","id":25037036,"avatar_url":"https://avatars3.githubusercontent.com/u/25037036?v=4","gravatar_id":"","url":"https://api.github.com/users/charlesstrange2","html_url":"https://github.com/charlesstrange2","followers_url":"https://api.github.com/users/charlesstrange2/followers","following_url":"https://api.github.com/users/charlesstrange2/following{/other_user}","gists_url":"https://api.github.com/users/charlesstrange2/gists{/gist_id}","starred_url":"https://api.github.com/users/charlesstrange2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlesstrange2/subscriptions","organizations_url":"https://api.github.com/users/charlesstrange2/orgs","repos_url":"https://api.github.com/users/charlesstrange2/repos","events_url":"https://api.github.com/users/charlesstrange2/events{/privacy}","received_events_url":"https://api.github.com/users/charlesstrange2/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-09T11:39:23Z","updated_at":"2018-02-09T16:23:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"550242286b55189da79fd8353aea534554dfd9dd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/neontribe/ARCVStore/pulls/93/commits","review_comments_url":"https://api.github.com/repos/neontribe/ARCVStore/pulls/93/comments","review_comment_url":"https://api.github.com/repos/neontribe/ARCVStore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/neontribe/ARCVStore/issues/93/comments","statuses_url":"https://api.github.com/repos/neontribe/ARCVStore/statuses/38dfc40a7e5b2e31c7e382eb23aace50f6a03033","head":{"label":"neontribe:0.2/790-sort-families-on-group-collection-sheet","ref":"0.2/790-sort-families-on-group-collection-sheet","sha":"38dfc40a7e5b2e31c7e382eb23aace50f6a03033","user":{"login":"neontribe","id":814085,"avatar_url":"https://avatars3.githubusercontent.com/u/814085?v=4","gravatar_id":"","url":"https://api.github.com/users/neontribe","html_url":"https://github.com/neontribe","followers_url":"https://api.github.com/users/neontribe/followers","following_url":"https://api.github.com/users/neontribe/following{/other_user}","gists_url":"https://api.github.com/users/neontribe/gists{/gist_id}","starred_url":"https://api.github.com/users/neontribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neontribe/subscriptions","organizations_url":"https://api.github.com/users/neontribe/orgs","repos_url":"https://api.github.com/users/neontribe/repos","events_url":"https://api.github.com/users/neontribe/events{/privacy}","received_events_url":"https://api.github.com/users/neontribe/received_events","type":"Organization","site_admin":false},"repo":{"id":112762002,"name":"ARCVStore","full_name":"neontribe/ARCVStore","owner":{"login":"neontribe","id":814085,"avatar_url":"https://avatars3.githubusercontent.com/u/814085?v=4","gravatar_id":"","url":"https://api.github.com/users/neontribe","html_url":"https://github.com/neontribe","followers_url":"https://api.github.com/users/neontribe/followers","following_url":"https://api.github.com/users/neontribe/following{/other_user}","gists_url":"https://api.github.com/users/neontribe/gists{/gist_id}","starred_url":"https://api.github.com/users/neontribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neontribe/subscriptions","organizations_url":"https://api.github.com/users/neontribe/orgs","repos_url":"https://api.github.com/users/neontribe/repos","events_url":"https://api.github.com/users/neontribe/events{/privacy}","received_events_url":"https://api.github.com/users/neontribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neontribe/ARCVStore","description":"ARC Voucher Participant Store","fork":false,"url":"https://api.github.com/repos/neontribe/ARCVStore","forks_url":"https://api.github.com/repos/neontribe/ARCVStore/forks","keys_url":"https://api.github.com/repos/neontribe/ARCVStore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neontribe/ARCVStore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neontribe/ARCVStore/teams","hooks_url":"https://api.github.com/repos/neontribe/ARCVStore/hooks","issue_events_url":"https://api.github.com/repos/neontribe/ARCVStore/issues/events{/number}","events_url":"https://api.github.com/repos/neontribe/ARCVStore/events","assignees_url":"https://api.github.com/repos/neontribe/ARCVStore/assignees{/user}","branches_url":"https://api.github.com/repos/neontribe/ARCVStore/branches{/branch}","tags_url":"https://api.github.com/repos/neontribe/ARCVStore/tags","blobs_url":"https://api.github.com/repos/neontribe/ARCVStore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neontribe/ARCVStore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neontribe/ARCVStore/git/refs{/sha}","trees_url":"https://api.github.com/repos/neontribe/ARCVStore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neontribe/ARCVStore/statuses/{sha}","languages_url":"https://api.github.com/repos/neontribe/ARCVStore/languages","stargazers_url":"https://api.github.com/repos/neontribe/ARCVStore/stargazers","contributors_url":"https://api.github.com/repos/neontribe/ARCVStore/contributors","subscribers_url":"https://api.github.com/repos/neontribe/ARCVStore/subscribers","subscription_url":"https://api.github.com/repos/neontribe/ARCVStore/subscription","commits_url":"https://api.github.com/repos/neontribe/ARCVStore/commits{/sha}","git_commits_url":"https://api.github.com/repos/neontribe/ARCVStore/git/commits{/sha}","comments_url":"https://api.github.com/repos/neontribe/ARCVStore/comments{/number}","issue_comment_url":"https://api.github.com/repos/neontribe/ARCVStore/issues/comments{/number}","contents_url":"https://api.github.com/repos/neontribe/ARCVStore/contents/{+path}","compare_url":"https://api.github.com/repos/neontribe/ARCVStore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neontribe/ARCVStore/merges","archive_url":"https://api.github.com/repos/neontribe/ARCVStore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neontribe/ARCVStore/downloads","issues_url":"https://api.github.com/repos/neontribe/ARCVStore/issues{/number}","pulls_url":"https://api.github.com/repos/neontribe/ARCVStore/pulls{/number}","milestones_url":"https://api.github.com/repos/neontribe/ARCVStore/milestones{/number}","notifications_url":"https://api.github.com/repos/neontribe/ARCVStore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neontribe/ARCVStore/labels{/name}","releases_url":"https://api.github.com/repos/neontribe/ARCVStore/releases{/id}","deployments_url":"https://api.github.com/repos/neontribe/ARCVStore/deployments","created_at":"2017-12-01T16:31:02Z","updated_at":"2017-12-01T16:40:47Z","pushed_at":"2018-02-09T16:22:57Z","git_url":"git://github.com/neontribe/ARCVStore.git","ssh_url":"git@github.com:neontribe/ARCVStore.git","clone_url":"https://github.com/neontribe/ARCVStore.git","svn_url":"https://github.com/neontribe/ARCVStore","homepage":null,"size":2342,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"0.2/release"}},"base":{"label":"neontribe:0.2/release","ref":"0.2/release","sha":"87021d33688373e72f8d8782a86b498e029bde47","user":{"login":"neontribe","id":814085,"avatar_url":"https://avatars3.githubusercontent.com/u/814085?v=4","gravatar_id":"","url":"https://api.github.com/users/neontribe","html_url":"https://github.com/neontribe","followers_url":"https://api.github.com/users/neontribe/followers","following_url":"https://api.github.com/users/neontribe/following{/other_user}","gists_url":"https://api.github.com/users/neontribe/gists{/gist_id}","starred_url":"https://api.github.com/users/neontribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neontribe/subscriptions","organizations_url":"https://api.github.com/users/neontribe/orgs","repos_url":"https://api.github.com/users/neontribe/repos","events_url":"https://api.github.com/users/neontribe/events{/privacy}","received_events_url":"https://api.github.com/users/neontribe/received_events","type":"Organization","site_admin":false},"repo":{"id":112762002,"name":"ARCVStore","full_name":"neontribe/ARCVStore","owner":{"login":"neontribe","id":814085,"avatar_url":"https://avatars3.githubusercontent.com/u/814085?v=4","gravatar_id":"","url":"https://api.github.com/users/neontribe","html_url":"https://github.com/neontribe","followers_url":"https://api.github.com/users/neontribe/followers","following_url":"https://api.github.com/users/neontribe/following{/other_user}","gists_url":"https://api.github.com/users/neontribe/gists{/gist_id}","starred_url":"https://api.github.com/users/neontribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neontribe/subscriptions","organizations_url":"https://api.github.com/users/neontribe/orgs","repos_url":"https://api.github.com/users/neontribe/repos","events_url":"https://api.github.com/users/neontribe/events{/privacy}","received_events_url":"https://api.github.com/users/neontribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/neontribe/ARCVStore","description":"ARC Voucher Participant Store","fork":false,"url":"https://api.github.com/repos/neontribe/ARCVStore","forks_url":"https://api.github.com/repos/neontribe/ARCVStore/forks","keys_url":"https://api.github.com/repos/neontribe/ARCVStore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/neontribe/ARCVStore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/neontribe/ARCVStore/teams","hooks_url":"https://api.github.com/repos/neontribe/ARCVStore/hooks","issue_events_url":"https://api.github.com/repos/neontribe/ARCVStore/issues/events{/number}","events_url":"https://api.github.com/repos/neontribe/ARCVStore/events","assignees_url":"https://api.github.com/repos/neontribe/ARCVStore/assignees{/user}","branches_url":"https://api.github.com/repos/neontribe/ARCVStore/branches{/branch}","tags_url":"https://api.github.com/repos/neontribe/ARCVStore/tags","blobs_url":"https://api.github.com/repos/neontribe/ARCVStore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/neontribe/ARCVStore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/neontribe/ARCVStore/git/refs{/sha}","trees_url":"https://api.github.com/repos/neontribe/ARCVStore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/neontribe/ARCVStore/statuses/{sha}","languages_url":"https://api.github.com/repos/neontribe/ARCVStore/languages","stargazers_url":"https://api.github.com/repos/neontribe/ARCVStore/stargazers","contributors_url":"https://api.github.com/repos/neontribe/ARCVStore/contributors","subscribers_url":"https://api.github.com/repos/neontribe/ARCVStore/subscribers","subscription_url":"https://api.github.com/repos/neontribe/ARCVStore/subscription","commits_url":"https://api.github.com/repos/neontribe/ARCVStore/commits{/sha}","git_commits_url":"https://api.github.com/repos/neontribe/ARCVStore/git/commits{/sha}","comments_url":"https://api.github.com/repos/neontribe/ARCVStore/comments{/number}","issue_comment_url":"https://api.github.com/repos/neontribe/ARCVStore/issues/comments{/number}","contents_url":"https://api.github.com/repos/neontribe/ARCVStore/contents/{+path}","compare_url":"https://api.github.com/repos/neontribe/ARCVStore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/neontribe/ARCVStore/merges","archive_url":"https://api.github.com/repos/neontribe/ARCVStore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/neontribe/ARCVStore/downloads","issues_url":"https://api.github.com/repos/neontribe/ARCVStore/issues{/number}","pulls_url":"https://api.github.com/repos/neontribe/ARCVStore/pulls{/number}","milestones_url":"https://api.github.com/repos/neontribe/ARCVStore/milestones{/number}","notifications_url":"https://api.github.com/repos/neontribe/ARCVStore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/neontribe/ARCVStore/labels{/name}","releases_url":"https://api.github.com/repos/neontribe/ARCVStore/releases{/id}","deployments_url":"https://api.github.com/repos/neontribe/ARCVStore/deployments","created_at":"2017-12-01T16:31:02Z","updated_at":"2017-12-01T16:40:47Z","pushed_at":"2018-02-09T16:22:57Z","git_url":"git://github.com/neontribe/ARCVStore.git","ssh_url":"git@github.com:neontribe/ARCVStore.git","clone_url":"https://github.com/neontribe/ARCVStore.git","svn_url":"https://github.com/neontribe/ARCVStore","homepage":null,"size":2342,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"0.2/release"}},"_links":{"self":{"href":"https://api.github.com/repos/neontribe/ARCVStore/pulls/93"},"html":{"href":"https://github.com/neontribe/ARCVStore/pull/93"},"issue":{"href":"https://api.github.com/repos/neontribe/ARCVStore/issues/93"},"comments":{"href":"https://api.github.com/repos/neontribe/ARCVStore/issues/93/comments"},"review_comments":{"href":"https://api.github.com/repos/neontribe/ARCVStore/pulls/93/comments"},"review_comment":{"href":"https://api.github.com/repos/neontribe/ARCVStore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/neontribe/ARCVStore/pulls/93/commits"},"statuses":{"href":"https://api.github.com/repos/neontribe/ARCVStore/statuses/38dfc40a7e5b2e31c7e382eb23aace50f6a03033"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"katjam"}}