{"action":"created","comment":{"url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/pulls/comments/56974995","id":56974995,"diff_hunk":"@@ -60,5 +61,65 @@ public static function show($id)\n         return view('volunteer.show', compact('volunteer'));\n     }\n \n+    /**\n+     *  Volunteer set a challenge to himself\n+     */\n+    public function createChallenge()\n+    {\n+            return view('volunteer.challenge');\n+\n+    }\n+\n+\n+    /**\n+     *  Store the challenge in the database\n+     */\n+    public function storeChallenge(Request $request)\n+    {\n+        $this->validate($request ,\n+            ['events' => 'required|numeric|min:1' ,\n+             'deadline' => 'required|date_format:Y-d-m'\n+            ]);\n+        $user_id = Auth::user()->id;","path":"app/Http/Controllers/VolunteerController.php","position":38,"original_position":38,"commit_id":"ca0a2ee96547d20d3573f0e239fad37f88e2a376","original_commit_id":"ca0a2ee96547d20d3573f0e239fad37f88e2a376","user":{"login":"AhmadElsagheer","id":16364930,"avatar_url":"https://avatars.githubusercontent.com/u/16364930?v=3","gravatar_id":"","url":"https://api.github.com/users/AhmadElsagheer","html_url":"https://github.com/AhmadElsagheer","followers_url":"https://api.github.com/users/AhmadElsagheer/followers","following_url":"https://api.github.com/users/AhmadElsagheer/following{/other_user}","gists_url":"https://api.github.com/users/AhmadElsagheer/gists{/gist_id}","starred_url":"https://api.github.com/users/AhmadElsagheer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AhmadElsagheer/subscriptions","organizations_url":"https://api.github.com/users/AhmadElsagheer/orgs","repos_url":"https://api.github.com/users/AhmadElsagheer/repos","events_url":"https://api.github.com/users/AhmadElsagheer/events{/privacy}","received_events_url":"https://api.github.com/users/AhmadElsagheer/received_events","type":"User","site_admin":false},"body":"the challenges are designed for a whole year (similar to that implement in goodreads. That is, the volunteer is promoted to set a number of events to attend in the current year\r\n","created_at":"2016-03-22T12:04:37Z","updated_at":"2016-03-22T12:04:37Z","html_url":"https://github.com/mostafa-abdullah/kheir-blogger/pull/35#discussion_r56974995","pull_request_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/pulls/comments/56974995"},"html":{"href":"https://github.com/mostafa-abdullah/kheir-blogger/pull/35#discussion_r56974995"},"pull_request":{"href":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/pulls/35","id":63638527,"html_url":"https://github.com/mostafa-abdullah/kheir-blogger/pull/35","diff_url":"https://github.com/mostafa-abdullah/kheir-blogger/pull/35.diff","patch_url":"https://github.com/mostafa-abdullah/kheir-blogger/pull/35.patch","issue_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/issues/35","number":35,"state":"open","locked":false,"title":"Challenges","user":{"login":"omarradwan","id":16716785,"avatar_url":"https://avatars.githubusercontent.com/u/16716785?v=3","gravatar_id":"","url":"https://api.github.com/users/omarradwan","html_url":"https://github.com/omarradwan","followers_url":"https://api.github.com/users/omarradwan/followers","following_url":"https://api.github.com/users/omarradwan/following{/other_user}","gists_url":"https://api.github.com/users/omarradwan/gists{/gist_id}","starred_url":"https://api.github.com/users/omarradwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omarradwan/subscriptions","organizations_url":"https://api.github.com/users/omarradwan/orgs","repos_url":"https://api.github.com/users/omarradwan/repos","events_url":"https://api.github.com/users/omarradwan/events{/privacy}","received_events_url":"https://api.github.com/users/omarradwan/received_events","type":"User","site_admin":false},"body":"active da walla msh active :'D","created_at":"2016-03-21T21:52:56Z","updated_at":"2016-03-22T12:04:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a2b745f547c3b24962e207da706cd6fe326e420","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/pulls/35/commits","review_comments_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/pulls/35/comments","review_comment_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/issues/35/comments","statuses_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/statuses/ca0a2ee96547d20d3573f0e239fad37f88e2a376","head":{"label":"mostafa-abdullah:Challenges","ref":"Challenges","sha":"ca0a2ee96547d20d3573f0e239fad37f88e2a376","user":{"login":"mostafa-abdullah","id":12327683,"avatar_url":"https://avatars.githubusercontent.com/u/12327683?v=3","gravatar_id":"","url":"https://api.github.com/users/mostafa-abdullah","html_url":"https://github.com/mostafa-abdullah","followers_url":"https://api.github.com/users/mostafa-abdullah/followers","following_url":"https://api.github.com/users/mostafa-abdullah/following{/other_user}","gists_url":"https://api.github.com/users/mostafa-abdullah/gists{/gist_id}","starred_url":"https://api.github.com/users/mostafa-abdullah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mostafa-abdullah/subscriptions","organizations_url":"https://api.github.com/users/mostafa-abdullah/orgs","repos_url":"https://api.github.com/users/mostafa-abdullah/repos","events_url":"https://api.github.com/users/mostafa-abdullah/events{/privacy}","received_events_url":"https://api.github.com/users/mostafa-abdullah/received_events","type":"User","site_admin":false},"repo":{"id":52609887,"name":"kheir-blogger","full_name":"mostafa-abdullah/kheir-blogger","owner":{"login":"mostafa-abdullah","id":12327683,"avatar_url":"https://avatars.githubusercontent.com/u/12327683?v=3","gravatar_id":"","url":"https://api.github.com/users/mostafa-abdullah","html_url":"https://github.com/mostafa-abdullah","followers_url":"https://api.github.com/users/mostafa-abdullah/followers","following_url":"https://api.github.com/users/mostafa-abdullah/following{/other_user}","gists_url":"https://api.github.com/users/mostafa-abdullah/gists{/gist_id}","starred_url":"https://api.github.com/users/mostafa-abdullah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mostafa-abdullah/subscriptions","organizations_url":"https://api.github.com/users/mostafa-abdullah/orgs","repos_url":"https://api.github.com/users/mostafa-abdullah/repos","events_url":"https://api.github.com/users/mostafa-abdullah/events{/privacy}","received_events_url":"https://api.github.com/users/mostafa-abdullah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mostafa-abdullah/kheir-blogger","description":"","fork":false,"url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger","forks_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/forks","keys_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/teams","hooks_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/hooks","issue_events_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/issues/events{/number}","events_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/events","assignees_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/assignees{/user}","branches_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/branches{/branch}","tags_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/tags","blobs_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/git/refs{/sha}","trees_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/statuses/{sha}","languages_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/languages","stargazers_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/stargazers","contributors_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/contributors","subscribers_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/subscribers","subscription_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/subscription","commits_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/commits{/sha}","git_commits_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/git/commits{/sha}","comments_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/comments{/number}","issue_comment_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/issues/comments{/number}","contents_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/contents/{+path}","compare_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/merges","archive_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/downloads","issues_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/issues{/number}","pulls_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/pulls{/number}","milestones_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/milestones{/number}","notifications_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/labels{/name}","releases_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/releases{/id}","deployments_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/deployments","created_at":"2016-02-26T14:31:09Z","updated_at":"2016-02-26T23:03:19Z","pushed_at":"2016-03-22T09:10:54Z","git_url":"git://github.com/mostafa-abdullah/kheir-blogger.git","ssh_url":"git@github.com:mostafa-abdullah/kheir-blogger.git","clone_url":"https://github.com/mostafa-abdullah/kheir-blogger.git","svn_url":"https://github.com/mostafa-abdullah/kheir-blogger","homepage":null,"size":591,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"mostafa-abdullah:master","ref":"master","sha":"f48d18924fad18a5ec8b70234dceb0bcb07f7297","user":{"login":"mostafa-abdullah","id":12327683,"avatar_url":"https://avatars.githubusercontent.com/u/12327683?v=3","gravatar_id":"","url":"https://api.github.com/users/mostafa-abdullah","html_url":"https://github.com/mostafa-abdullah","followers_url":"https://api.github.com/users/mostafa-abdullah/followers","following_url":"https://api.github.com/users/mostafa-abdullah/following{/other_user}","gists_url":"https://api.github.com/users/mostafa-abdullah/gists{/gist_id}","starred_url":"https://api.github.com/users/mostafa-abdullah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mostafa-abdullah/subscriptions","organizations_url":"https://api.github.com/users/mostafa-abdullah/orgs","repos_url":"https://api.github.com/users/mostafa-abdullah/repos","events_url":"https://api.github.com/users/mostafa-abdullah/events{/privacy}","received_events_url":"https://api.github.com/users/mostafa-abdullah/received_events","type":"User","site_admin":false},"repo":{"id":52609887,"name":"kheir-blogger","full_name":"mostafa-abdullah/kheir-blogger","owner":{"login":"mostafa-abdullah","id":12327683,"avatar_url":"https://avatars.githubusercontent.com/u/12327683?v=3","gravatar_id":"","url":"https://api.github.com/users/mostafa-abdullah","html_url":"https://github.com/mostafa-abdullah","followers_url":"https://api.github.com/users/mostafa-abdullah/followers","following_url":"https://api.github.com/users/mostafa-abdullah/following{/other_user}","gists_url":"https://api.github.com/users/mostafa-abdullah/gists{/gist_id}","starred_url":"https://api.github.com/users/mostafa-abdullah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mostafa-abdullah/subscriptions","organizations_url":"https://api.github.com/users/mostafa-abdullah/orgs","repos_url":"https://api.github.com/users/mostafa-abdullah/repos","events_url":"https://api.github.com/users/mostafa-abdullah/events{/privacy}","received_events_url":"https://api.github.com/users/mostafa-abdullah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mostafa-abdullah/kheir-blogger","description":"","fork":false,"url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger","forks_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/forks","keys_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/teams","hooks_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/hooks","issue_events_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/issues/events{/number}","events_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/events","assignees_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/assignees{/user}","branches_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/branches{/branch}","tags_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/tags","blobs_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/git/refs{/sha}","trees_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/statuses/{sha}","languages_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/languages","stargazers_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/stargazers","contributors_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/contributors","subscribers_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/subscribers","subscription_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/subscription","commits_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/commits{/sha}","git_commits_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/git/commits{/sha}","comments_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/comments{/number}","issue_comment_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/issues/comments{/number}","contents_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/contents/{+path}","compare_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/merges","archive_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/downloads","issues_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/issues{/number}","pulls_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/pulls{/number}","milestones_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/milestones{/number}","notifications_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/labels{/name}","releases_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/releases{/id}","deployments_url":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/deployments","created_at":"2016-02-26T14:31:09Z","updated_at":"2016-02-26T23:03:19Z","pushed_at":"2016-03-22T09:10:54Z","git_url":"git://github.com/mostafa-abdullah/kheir-blogger.git","ssh_url":"git@github.com:mostafa-abdullah/kheir-blogger.git","clone_url":"https://github.com/mostafa-abdullah/kheir-blogger.git","svn_url":"https://github.com/mostafa-abdullah/kheir-blogger","homepage":null,"size":591,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/pulls/35"},"html":{"href":"https://github.com/mostafa-abdullah/kheir-blogger/pull/35"},"issue":{"href":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/issues/35"},"comments":{"href":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/mostafa-abdullah/kheir-blogger/statuses/ca0a2ee96547d20d3573f0e239fad37f88e2a376"}}}}