{"action":"closed","number":120,"pull_request":{"url":"https://api.github.com/repos/andersao/l5-repository/pulls/120","id":55538324,"html_url":"https://github.com/andersao/l5-repository/pull/120","diff_url":"https://github.com/andersao/l5-repository/pull/120.diff","patch_url":"https://github.com/andersao/l5-repository/pull/120.patch","issue_url":"https://api.github.com/repos/andersao/l5-repository/issues/120","number":120,"state":"closed","locked":false,"title":"casts data before validate","user":{"login":"ptcong","id":1702916,"avatar_url":"https://avatars.githubusercontent.com/u/1702916?v=3","gravatar_id":"","url":"https://api.github.com/users/ptcong","html_url":"https://github.com/ptcong","followers_url":"https://api.github.com/users/ptcong/followers","following_url":"https://api.github.com/users/ptcong/following{/other_user}","gists_url":"https://api.github.com/users/ptcong/gists{/gist_id}","starred_url":"https://api.github.com/users/ptcong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptcong/subscriptions","organizations_url":"https://api.github.com/users/ptcong/orgs","repos_url":"https://api.github.com/users/ptcong/repos","events_url":"https://api.github.com/users/ptcong/events{/privacy}","received_events_url":"https://api.github.com/users/ptcong/received_events","type":"User","site_admin":false},"body":"We should pass data that has been casts by the model to make sure data type are same\r\nBecause validator may need to use this data to compare with data that fetch from database.","created_at":"2016-01-09T08:37:45Z","updated_at":"2016-04-01T17:56:27Z","closed_at":"2016-04-01T17:56:27Z","merged_at":null,"merge_commit_sha":"a154d45a6493315ec6cf2ad74d0725714ad57148","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andersao/l5-repository/pulls/120/commits","review_comments_url":"https://api.github.com/repos/andersao/l5-repository/pulls/120/comments","review_comment_url":"https://api.github.com/repos/andersao/l5-repository/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andersao/l5-repository/issues/120/comments","statuses_url":"https://api.github.com/repos/andersao/l5-repository/statuses/8881285d22211fe2515907b434b289fca8dec4f7","head":{"label":"ptcong:casts-data-before-validate","ref":"casts-data-before-validate","sha":"8881285d22211fe2515907b434b289fca8dec4f7","user":{"login":"ptcong","id":1702916,"avatar_url":"https://avatars.githubusercontent.com/u/1702916?v=3","gravatar_id":"","url":"https://api.github.com/users/ptcong","html_url":"https://github.com/ptcong","followers_url":"https://api.github.com/users/ptcong/followers","following_url":"https://api.github.com/users/ptcong/following{/other_user}","gists_url":"https://api.github.com/users/ptcong/gists{/gist_id}","starred_url":"https://api.github.com/users/ptcong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptcong/subscriptions","organizations_url":"https://api.github.com/users/ptcong/orgs","repos_url":"https://api.github.com/users/ptcong/repos","events_url":"https://api.github.com/users/ptcong/events{/privacy}","received_events_url":"https://api.github.com/users/ptcong/received_events","type":"User","site_admin":false},"repo":{"id":49265647,"name":"l5-repository","full_name":"ptcong/l5-repository","owner":{"login":"ptcong","id":1702916,"avatar_url":"https://avatars.githubusercontent.com/u/1702916?v=3","gravatar_id":"","url":"https://api.github.com/users/ptcong","html_url":"https://github.com/ptcong","followers_url":"https://api.github.com/users/ptcong/followers","following_url":"https://api.github.com/users/ptcong/following{/other_user}","gists_url":"https://api.github.com/users/ptcong/gists{/gist_id}","starred_url":"https://api.github.com/users/ptcong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptcong/subscriptions","organizations_url":"https://api.github.com/users/ptcong/orgs","repos_url":"https://api.github.com/users/ptcong/repos","events_url":"https://api.github.com/users/ptcong/events{/privacy}","received_events_url":"https://api.github.com/users/ptcong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ptcong/l5-repository","description":"Laravel 5 - Repositories to abstract the database layer","fork":true,"url":"https://api.github.com/repos/ptcong/l5-repository","forks_url":"https://api.github.com/repos/ptcong/l5-repository/forks","keys_url":"https://api.github.com/repos/ptcong/l5-repository/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ptcong/l5-repository/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ptcong/l5-repository/teams","hooks_url":"https://api.github.com/repos/ptcong/l5-repository/hooks","issue_events_url":"https://api.github.com/repos/ptcong/l5-repository/issues/events{/number}","events_url":"https://api.github.com/repos/ptcong/l5-repository/events","assignees_url":"https://api.github.com/repos/ptcong/l5-repository/assignees{/user}","branches_url":"https://api.github.com/repos/ptcong/l5-repository/branches{/branch}","tags_url":"https://api.github.com/repos/ptcong/l5-repository/tags","blobs_url":"https://api.github.com/repos/ptcong/l5-repository/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ptcong/l5-repository/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ptcong/l5-repository/git/refs{/sha}","trees_url":"https://api.github.com/repos/ptcong/l5-repository/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ptcong/l5-repository/statuses/{sha}","languages_url":"https://api.github.com/repos/ptcong/l5-repository/languages","stargazers_url":"https://api.github.com/repos/ptcong/l5-repository/stargazers","contributors_url":"https://api.github.com/repos/ptcong/l5-repository/contributors","subscribers_url":"https://api.github.com/repos/ptcong/l5-repository/subscribers","subscription_url":"https://api.github.com/repos/ptcong/l5-repository/subscription","commits_url":"https://api.github.com/repos/ptcong/l5-repository/commits{/sha}","git_commits_url":"https://api.github.com/repos/ptcong/l5-repository/git/commits{/sha}","comments_url":"https://api.github.com/repos/ptcong/l5-repository/comments{/number}","issue_comment_url":"https://api.github.com/repos/ptcong/l5-repository/issues/comments{/number}","contents_url":"https://api.github.com/repos/ptcong/l5-repository/contents/{+path}","compare_url":"https://api.github.com/repos/ptcong/l5-repository/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ptcong/l5-repository/merges","archive_url":"https://api.github.com/repos/ptcong/l5-repository/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ptcong/l5-repository/downloads","issues_url":"https://api.github.com/repos/ptcong/l5-repository/issues{/number}","pulls_url":"https://api.github.com/repos/ptcong/l5-repository/pulls{/number}","milestones_url":"https://api.github.com/repos/ptcong/l5-repository/milestones{/number}","notifications_url":"https://api.github.com/repos/ptcong/l5-repository/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ptcong/l5-repository/labels{/name}","releases_url":"https://api.github.com/repos/ptcong/l5-repository/releases{/id}","deployments_url":"https://api.github.com/repos/ptcong/l5-repository/deployments","created_at":"2016-01-08T10:21:55Z","updated_at":"2016-01-08T10:21:56Z","pushed_at":"2016-01-09T08:44:22Z","git_url":"git://github.com/ptcong/l5-repository.git","ssh_url":"git@github.com:ptcong/l5-repository.git","clone_url":"https://github.com/ptcong/l5-repository.git","svn_url":"https://github.com/ptcong/l5-repository","homepage":null,"size":232,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"andersao:master","ref":"master","sha":"520cc8a8519851090e2707413fae3bc59ba582e7","user":{"login":"andersao","id":1131667,"avatar_url":"https://avatars.githubusercontent.com/u/1131667?v=3","gravatar_id":"","url":"https://api.github.com/users/andersao","html_url":"https://github.com/andersao","followers_url":"https://api.github.com/users/andersao/followers","following_url":"https://api.github.com/users/andersao/following{/other_user}","gists_url":"https://api.github.com/users/andersao/gists{/gist_id}","starred_url":"https://api.github.com/users/andersao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersao/subscriptions","organizations_url":"https://api.github.com/users/andersao/orgs","repos_url":"https://api.github.com/users/andersao/repos","events_url":"https://api.github.com/users/andersao/events{/privacy}","received_events_url":"https://api.github.com/users/andersao/received_events","type":"User","site_admin":false},"repo":{"id":30713379,"name":"l5-repository","full_name":"andersao/l5-repository","owner":{"login":"andersao","id":1131667,"avatar_url":"https://avatars.githubusercontent.com/u/1131667?v=3","gravatar_id":"","url":"https://api.github.com/users/andersao","html_url":"https://github.com/andersao","followers_url":"https://api.github.com/users/andersao/followers","following_url":"https://api.github.com/users/andersao/following{/other_user}","gists_url":"https://api.github.com/users/andersao/gists{/gist_id}","starred_url":"https://api.github.com/users/andersao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andersao/subscriptions","organizations_url":"https://api.github.com/users/andersao/orgs","repos_url":"https://api.github.com/users/andersao/repos","events_url":"https://api.github.com/users/andersao/events{/privacy}","received_events_url":"https://api.github.com/users/andersao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andersao/l5-repository","description":"Laravel 5 - Repositories to abstract the database layer","fork":false,"url":"https://api.github.com/repos/andersao/l5-repository","forks_url":"https://api.github.com/repos/andersao/l5-repository/forks","keys_url":"https://api.github.com/repos/andersao/l5-repository/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andersao/l5-repository/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andersao/l5-repository/teams","hooks_url":"https://api.github.com/repos/andersao/l5-repository/hooks","issue_events_url":"https://api.github.com/repos/andersao/l5-repository/issues/events{/number}","events_url":"https://api.github.com/repos/andersao/l5-repository/events","assignees_url":"https://api.github.com/repos/andersao/l5-repository/assignees{/user}","branches_url":"https://api.github.com/repos/andersao/l5-repository/branches{/branch}","tags_url":"https://api.github.com/repos/andersao/l5-repository/tags","blobs_url":"https://api.github.com/repos/andersao/l5-repository/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andersao/l5-repository/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andersao/l5-repository/git/refs{/sha}","trees_url":"https://api.github.com/repos/andersao/l5-repository/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andersao/l5-repository/statuses/{sha}","languages_url":"https://api.github.com/repos/andersao/l5-repository/languages","stargazers_url":"https://api.github.com/repos/andersao/l5-repository/stargazers","contributors_url":"https://api.github.com/repos/andersao/l5-repository/contributors","subscribers_url":"https://api.github.com/repos/andersao/l5-repository/subscribers","subscription_url":"https://api.github.com/repos/andersao/l5-repository/subscription","commits_url":"https://api.github.com/repos/andersao/l5-repository/commits{/sha}","git_commits_url":"https://api.github.com/repos/andersao/l5-repository/git/commits{/sha}","comments_url":"https://api.github.com/repos/andersao/l5-repository/comments{/number}","issue_comment_url":"https://api.github.com/repos/andersao/l5-repository/issues/comments{/number}","contents_url":"https://api.github.com/repos/andersao/l5-repository/contents/{+path}","compare_url":"https://api.github.com/repos/andersao/l5-repository/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andersao/l5-repository/merges","archive_url":"https://api.github.com/repos/andersao/l5-repository/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andersao/l5-repository/downloads","issues_url":"https://api.github.com/repos/andersao/l5-repository/issues{/number}","pulls_url":"https://api.github.com/repos/andersao/l5-repository/pulls{/number}","milestones_url":"https://api.github.com/repos/andersao/l5-repository/milestones{/number}","notifications_url":"https://api.github.com/repos/andersao/l5-repository/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andersao/l5-repository/labels{/name}","releases_url":"https://api.github.com/repos/andersao/l5-repository/releases{/id}","deployments_url":"https://api.github.com/repos/andersao/l5-repository/deployments","created_at":"2015-02-12T17:07:54Z","updated_at":"2016-04-01T15:45:17Z","pushed_at":"2016-04-01T17:45:38Z","git_url":"git://github.com/andersao/l5-repository.git","ssh_url":"git@github.com:andersao/l5-repository.git","clone_url":"https://github.com/andersao/l5-repository.git","svn_url":"https://github.com/andersao/l5-repository","homepage":null,"size":436,"stargazers_count":627,"watchers_count":627,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":118,"mirror_url":null,"open_issues_count":56,"forks":118,"open_issues":56,"watchers":627,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andersao/l5-repository/pulls/120"},"html":{"href":"https://github.com/andersao/l5-repository/pull/120"},"issue":{"href":"https://api.github.com/repos/andersao/l5-repository/issues/120"},"comments":{"href":"https://api.github.com/repos/andersao/l5-repository/issues/120/comments"},"review_comments":{"href":"https://api.github.com/repos/andersao/l5-repository/pulls/120/comments"},"review_comment":{"href":"https://api.github.com/repos/andersao/l5-repository/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andersao/l5-repository/pulls/120/commits"},"statuses":{"href":"https://api.github.com/repos/andersao/l5-repository/statuses/8881285d22211fe2515907b434b289fca8dec4f7"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":15,"deletions":1,"changed_files":1}}