{"action":"created","comment":{"url":"https://api.github.com/repos/mattstauffer/pulledover/pulls/comments/55391281","id":55391281,"diff_hunk":"@@ -18,12 +18,18 @@ public function create()\n \n     public function store(Request $request)\n     {\n-        $this->validate($request, [\n+        $number = preg_replace('/[^\\d]/', '', $request->input('number'));","path":"app/Http/Controllers/NumbersController.php","position":5,"original_position":5,"commit_id":"8e42426c5d7ad954b93aebaaa07d1b62a760ea45","original_commit_id":"8e42426c5d7ad954b93aebaaa07d1b62a760ea45","user":{"login":"RDelorier","id":2295675,"avatar_url":"https://avatars.githubusercontent.com/u/2295675?v=3","gravatar_id":"","url":"https://api.github.com/users/RDelorier","html_url":"https://github.com/RDelorier","followers_url":"https://api.github.com/users/RDelorier/followers","following_url":"https://api.github.com/users/RDelorier/following{/other_user}","gists_url":"https://api.github.com/users/RDelorier/gists{/gist_id}","starred_url":"https://api.github.com/users/RDelorier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RDelorier/subscriptions","organizations_url":"https://api.github.com/users/RDelorier/orgs","repos_url":"https://api.github.com/users/RDelorier/repos","events_url":"https://api.github.com/users/RDelorier/events{/privacy}","received_events_url":"https://api.github.com/users/RDelorier/received_events","type":"User","site_admin":false},"body":"Maybe we could extend Str with a digits function so this isn't duplicated","created_at":"2016-03-08T17:09:47Z","updated_at":"2016-03-08T17:09:47Z","html_url":"https://github.com/mattstauffer/pulledover/pull/25#discussion_r55391281","pull_request_url":"https://api.github.com/repos/mattstauffer/pulledover/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/mattstauffer/pulledover/pulls/comments/55391281"},"html":{"href":"https://github.com/mattstauffer/pulledover/pull/25#discussion_r55391281"},"pull_request":{"href":"https://api.github.com/repos/mattstauffer/pulledover/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/mattstauffer/pulledover/pulls/25","id":62025437,"html_url":"https://github.com/mattstauffer/pulledover/pull/25","diff_url":"https://github.com/mattstauffer/pulledover/pull/25.diff","patch_url":"https://github.com/mattstauffer/pulledover/pull/25.patch","issue_url":"https://api.github.com/repos/mattstauffer/pulledover/issues/25","number":25,"state":"open","locked":false,"title":"Clean numbers on store","user":{"login":"RDelorier","id":2295675,"avatar_url":"https://avatars.githubusercontent.com/u/2295675?v=3","gravatar_id":"","url":"https://api.github.com/users/RDelorier","html_url":"https://github.com/RDelorier","followers_url":"https://api.github.com/users/RDelorier/followers","following_url":"https://api.github.com/users/RDelorier/following{/other_user}","gists_url":"https://api.github.com/users/RDelorier/gists{/gist_id}","starred_url":"https://api.github.com/users/RDelorier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RDelorier/subscriptions","organizations_url":"https://api.github.com/users/RDelorier/orgs","repos_url":"https://api.github.com/users/RDelorier/repos","events_url":"https://api.github.com/users/RDelorier/events{/privacy}","received_events_url":"https://api.github.com/users/RDelorier/received_events","type":"User","site_admin":false},"body":"Fixes #13 \r\nFixes #22 \r\nStrips non numeric characters when storing new numbers.\r\n\r\nAlso moves verified number check for friends to middleware and fixed PhoneNumber::verified scope","created_at":"2016-03-08T05:08:52Z","updated_at":"2016-03-08T17:09:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"947c5028063724c1b7a284189af7201dbe04e84f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mattstauffer/pulledover/pulls/25/commits","review_comments_url":"https://api.github.com/repos/mattstauffer/pulledover/pulls/25/comments","review_comment_url":"https://api.github.com/repos/mattstauffer/pulledover/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mattstauffer/pulledover/issues/25/comments","statuses_url":"https://api.github.com/repos/mattstauffer/pulledover/statuses/8e42426c5d7ad954b93aebaaa07d1b62a760ea45","head":{"label":"RDelorier:clean-numbers-on-store","ref":"clean-numbers-on-store","sha":"8e42426c5d7ad954b93aebaaa07d1b62a760ea45","user":{"login":"RDelorier","id":2295675,"avatar_url":"https://avatars.githubusercontent.com/u/2295675?v=3","gravatar_id":"","url":"https://api.github.com/users/RDelorier","html_url":"https://github.com/RDelorier","followers_url":"https://api.github.com/users/RDelorier/followers","following_url":"https://api.github.com/users/RDelorier/following{/other_user}","gists_url":"https://api.github.com/users/RDelorier/gists{/gist_id}","starred_url":"https://api.github.com/users/RDelorier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RDelorier/subscriptions","organizations_url":"https://api.github.com/users/RDelorier/orgs","repos_url":"https://api.github.com/users/RDelorier/repos","events_url":"https://api.github.com/users/RDelorier/events{/privacy}","received_events_url":"https://api.github.com/users/RDelorier/received_events","type":"User","site_admin":false},"repo":{"id":53017547,"name":"pulledover","full_name":"RDelorier/pulledover","owner":{"login":"RDelorier","id":2295675,"avatar_url":"https://avatars.githubusercontent.com/u/2295675?v=3","gravatar_id":"","url":"https://api.github.com/users/RDelorier","html_url":"https://github.com/RDelorier","followers_url":"https://api.github.com/users/RDelorier/followers","following_url":"https://api.github.com/users/RDelorier/following{/other_user}","gists_url":"https://api.github.com/users/RDelorier/gists{/gist_id}","starred_url":"https://api.github.com/users/RDelorier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RDelorier/subscriptions","organizations_url":"https://api.github.com/users/RDelorier/orgs","repos_url":"https://api.github.com/users/RDelorier/repos","events_url":"https://api.github.com/users/RDelorier/events{/privacy}","received_events_url":"https://api.github.com/users/RDelorier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RDelorier/pulledover","description":"Pulled Over App","fork":true,"url":"https://api.github.com/repos/RDelorier/pulledover","forks_url":"https://api.github.com/repos/RDelorier/pulledover/forks","keys_url":"https://api.github.com/repos/RDelorier/pulledover/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RDelorier/pulledover/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RDelorier/pulledover/teams","hooks_url":"https://api.github.com/repos/RDelorier/pulledover/hooks","issue_events_url":"https://api.github.com/repos/RDelorier/pulledover/issues/events{/number}","events_url":"https://api.github.com/repos/RDelorier/pulledover/events","assignees_url":"https://api.github.com/repos/RDelorier/pulledover/assignees{/user}","branches_url":"https://api.github.com/repos/RDelorier/pulledover/branches{/branch}","tags_url":"https://api.github.com/repos/RDelorier/pulledover/tags","blobs_url":"https://api.github.com/repos/RDelorier/pulledover/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RDelorier/pulledover/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RDelorier/pulledover/git/refs{/sha}","trees_url":"https://api.github.com/repos/RDelorier/pulledover/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RDelorier/pulledover/statuses/{sha}","languages_url":"https://api.github.com/repos/RDelorier/pulledover/languages","stargazers_url":"https://api.github.com/repos/RDelorier/pulledover/stargazers","contributors_url":"https://api.github.com/repos/RDelorier/pulledover/contributors","subscribers_url":"https://api.github.com/repos/RDelorier/pulledover/subscribers","subscription_url":"https://api.github.com/repos/RDelorier/pulledover/subscription","commits_url":"https://api.github.com/repos/RDelorier/pulledover/commits{/sha}","git_commits_url":"https://api.github.com/repos/RDelorier/pulledover/git/commits{/sha}","comments_url":"https://api.github.com/repos/RDelorier/pulledover/comments{/number}","issue_comment_url":"https://api.github.com/repos/RDelorier/pulledover/issues/comments{/number}","contents_url":"https://api.github.com/repos/RDelorier/pulledover/contents/{+path}","compare_url":"https://api.github.com/repos/RDelorier/pulledover/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RDelorier/pulledover/merges","archive_url":"https://api.github.com/repos/RDelorier/pulledover/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RDelorier/pulledover/downloads","issues_url":"https://api.github.com/repos/RDelorier/pulledover/issues{/number}","pulls_url":"https://api.github.com/repos/RDelorier/pulledover/pulls{/number}","milestones_url":"https://api.github.com/repos/RDelorier/pulledover/milestones{/number}","notifications_url":"https://api.github.com/repos/RDelorier/pulledover/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RDelorier/pulledover/labels{/name}","releases_url":"https://api.github.com/repos/RDelorier/pulledover/releases{/id}","deployments_url":"https://api.github.com/repos/RDelorier/pulledover/deployments","created_at":"2016-03-03T03:29:27Z","updated_at":"2016-03-03T03:29:28Z","pushed_at":"2016-03-08T13:14:01Z","git_url":"git://github.com/RDelorier/pulledover.git","ssh_url":"git@github.com:RDelorier/pulledover.git","clone_url":"https://github.com/RDelorier/pulledover.git","svn_url":"https://github.com/RDelorier/pulledover","homepage":"http://pulledover.us/","size":2960,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mattstauffer:master","ref":"master","sha":"5c0c01a332a20a78d8dd20d89bbe1d66e17c5e01","user":{"login":"mattstauffer","id":151829,"avatar_url":"https://avatars.githubusercontent.com/u/151829?v=3","gravatar_id":"","url":"https://api.github.com/users/mattstauffer","html_url":"https://github.com/mattstauffer","followers_url":"https://api.github.com/users/mattstauffer/followers","following_url":"https://api.github.com/users/mattstauffer/following{/other_user}","gists_url":"https://api.github.com/users/mattstauffer/gists{/gist_id}","starred_url":"https://api.github.com/users/mattstauffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattstauffer/subscriptions","organizations_url":"https://api.github.com/users/mattstauffer/orgs","repos_url":"https://api.github.com/users/mattstauffer/repos","events_url":"https://api.github.com/users/mattstauffer/events{/privacy}","received_events_url":"https://api.github.com/users/mattstauffer/received_events","type":"User","site_admin":false},"repo":{"id":39700087,"name":"pulledover","full_name":"mattstauffer/pulledover","owner":{"login":"mattstauffer","id":151829,"avatar_url":"https://avatars.githubusercontent.com/u/151829?v=3","gravatar_id":"","url":"https://api.github.com/users/mattstauffer","html_url":"https://github.com/mattstauffer","followers_url":"https://api.github.com/users/mattstauffer/followers","following_url":"https://api.github.com/users/mattstauffer/following{/other_user}","gists_url":"https://api.github.com/users/mattstauffer/gists{/gist_id}","starred_url":"https://api.github.com/users/mattstauffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattstauffer/subscriptions","organizations_url":"https://api.github.com/users/mattstauffer/orgs","repos_url":"https://api.github.com/users/mattstauffer/repos","events_url":"https://api.github.com/users/mattstauffer/events{/privacy}","received_events_url":"https://api.github.com/users/mattstauffer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mattstauffer/pulledover","description":"Pulled Over App","fork":false,"url":"https://api.github.com/repos/mattstauffer/pulledover","forks_url":"https://api.github.com/repos/mattstauffer/pulledover/forks","keys_url":"https://api.github.com/repos/mattstauffer/pulledover/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mattstauffer/pulledover/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mattstauffer/pulledover/teams","hooks_url":"https://api.github.com/repos/mattstauffer/pulledover/hooks","issue_events_url":"https://api.github.com/repos/mattstauffer/pulledover/issues/events{/number}","events_url":"https://api.github.com/repos/mattstauffer/pulledover/events","assignees_url":"https://api.github.com/repos/mattstauffer/pulledover/assignees{/user}","branches_url":"https://api.github.com/repos/mattstauffer/pulledover/branches{/branch}","tags_url":"https://api.github.com/repos/mattstauffer/pulledover/tags","blobs_url":"https://api.github.com/repos/mattstauffer/pulledover/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mattstauffer/pulledover/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mattstauffer/pulledover/git/refs{/sha}","trees_url":"https://api.github.com/repos/mattstauffer/pulledover/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mattstauffer/pulledover/statuses/{sha}","languages_url":"https://api.github.com/repos/mattstauffer/pulledover/languages","stargazers_url":"https://api.github.com/repos/mattstauffer/pulledover/stargazers","contributors_url":"https://api.github.com/repos/mattstauffer/pulledover/contributors","subscribers_url":"https://api.github.com/repos/mattstauffer/pulledover/subscribers","subscription_url":"https://api.github.com/repos/mattstauffer/pulledover/subscription","commits_url":"https://api.github.com/repos/mattstauffer/pulledover/commits{/sha}","git_commits_url":"https://api.github.com/repos/mattstauffer/pulledover/git/commits{/sha}","comments_url":"https://api.github.com/repos/mattstauffer/pulledover/comments{/number}","issue_comment_url":"https://api.github.com/repos/mattstauffer/pulledover/issues/comments{/number}","contents_url":"https://api.github.com/repos/mattstauffer/pulledover/contents/{+path}","compare_url":"https://api.github.com/repos/mattstauffer/pulledover/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mattstauffer/pulledover/merges","archive_url":"https://api.github.com/repos/mattstauffer/pulledover/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mattstauffer/pulledover/downloads","issues_url":"https://api.github.com/repos/mattstauffer/pulledover/issues{/number}","pulls_url":"https://api.github.com/repos/mattstauffer/pulledover/pulls{/number}","milestones_url":"https://api.github.com/repos/mattstauffer/pulledover/milestones{/number}","notifications_url":"https://api.github.com/repos/mattstauffer/pulledover/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mattstauffer/pulledover/labels{/name}","releases_url":"https://api.github.com/repos/mattstauffer/pulledover/releases{/id}","deployments_url":"https://api.github.com/repos/mattstauffer/pulledover/deployments","created_at":"2015-07-25T19:30:56Z","updated_at":"2016-03-03T15:31:04Z","pushed_at":"2016-03-08T13:14:01Z","git_url":"git://github.com/mattstauffer/pulledover.git","ssh_url":"git@github.com:mattstauffer/pulledover.git","clone_url":"https://github.com/mattstauffer/pulledover.git","svn_url":"https://github.com/mattstauffer/pulledover","homepage":"http://pulledover.us/","size":2827,"stargazers_count":40,"watchers_count":40,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":40,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mattstauffer/pulledover/pulls/25"},"html":{"href":"https://github.com/mattstauffer/pulledover/pull/25"},"issue":{"href":"https://api.github.com/repos/mattstauffer/pulledover/issues/25"},"comments":{"href":"https://api.github.com/repos/mattstauffer/pulledover/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/mattstauffer/pulledover/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/mattstauffer/pulledover/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mattstauffer/pulledover/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/mattstauffer/pulledover/statuses/8e42426c5d7ad954b93aebaaa07d1b62a760ea45"}}}}