{"action":"created","comment":{"url":"https://api.github.com/repos/thori0908/laravel_training/pulls/comments/28843524","id":28843524,"diff_hunk":"@@ -14,13 +14,27 @@ class ConfirmController extends BaseController {\n \t|\tRoute::get('/', 'HomeController@showWelcome');\n \t|\n \t*/\n+    // csrf filter\n+    public function __construct() {\n+        $this->beforeFilter('csrf', array('on' => 'post'));\n+    }","path":"app/controllers/ConfirmController.php","position":7,"original_position":7,"commit_id":"1f2bb595eab3c1d642759f5df5898eb5b58c0f91","original_commit_id":"1f2bb595eab3c1d642759f5df5898eb5b58c0f91","user":{"login":"fr-matsuo","id":7111595,"avatar_url":"https://avatars.githubusercontent.com/u/7111595?v=3","gravatar_id":"","url":"https://api.github.com/users/fr-matsuo","html_url":"https://github.com/fr-matsuo","followers_url":"https://api.github.com/users/fr-matsuo/followers","following_url":"https://api.github.com/users/fr-matsuo/following{/other_user}","gists_url":"https://api.github.com/users/fr-matsuo/gists{/gist_id}","starred_url":"https://api.github.com/users/fr-matsuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fr-matsuo/subscriptions","organizations_url":"https://api.github.com/users/fr-matsuo/orgs","repos_url":"https://api.github.com/users/fr-matsuo/repos","events_url":"https://api.github.com/users/fr-matsuo/events{/privacy}","received_events_url":"https://api.github.com/users/fr-matsuo/received_events","type":"User","site_admin":false},"body":"`ConfirmController`へのPOSTリクエスト のみしかフィルターを通らないため、\r\n`CompleteController`の方にもお願い致します。\r\n\r\n***\r\n１つのコントローラに１つのアクションのみを書く、ということはあまりなく、\r\n`User`などのリソース単位で、`UserController#index`や`UserController#input`などの\r\nCRUD処理を一つのコントローラに定義する、ということが多いかと思います。\r\n既存のコードを読む際に、頭の片隅に置いといて頂ければと:bow:","created_at":"2015-04-22T04:21:03Z","updated_at":"2015-04-22T04:21:03Z","html_url":"https://github.com/thori0908/laravel_training/pull/4#discussion_r28843524","pull_request_url":"https://api.github.com/repos/thori0908/laravel_training/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/thori0908/laravel_training/pulls/comments/28843524"},"html":{"href":"https://github.com/thori0908/laravel_training/pull/4#discussion_r28843524"},"pull_request":{"href":"https://api.github.com/repos/thori0908/laravel_training/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/thori0908/laravel_training/pulls/4","id":33521371,"html_url":"https://github.com/thori0908/laravel_training/pull/4","diff_url":"https://github.com/thori0908/laravel_training/pull/4.diff","patch_url":"https://github.com/thori0908/laravel_training/pull/4.patch","issue_url":"https://api.github.com/repos/thori0908/laravel_training/issues/4","number":4,"state":"open","locked":false,"title":"フレームワーク - Laravel - フォームのバリデーション、CSRF対策 issue39","user":{"login":"thori0908","id":7833726,"avatar_url":"https://avatars.githubusercontent.com/u/7833726?v=3","gravatar_id":"","url":"https://api.github.com/users/thori0908","html_url":"https://github.com/thori0908","followers_url":"https://api.github.com/users/thori0908/followers","following_url":"https://api.github.com/users/thori0908/following{/other_user}","gists_url":"https://api.github.com/users/thori0908/gists{/gist_id}","starred_url":"https://api.github.com/users/thori0908/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thori0908/subscriptions","organizations_url":"https://api.github.com/users/thori0908/orgs","repos_url":"https://api.github.com/users/thori0908/repos","events_url":"https://api.github.com/users/thori0908/events{/privacy}","received_events_url":"https://api.github.com/users/thori0908/received_events","type":"User","site_admin":false},"body":"#### 以下を実装予定\r\n\r\n- [x] 氏名入力値が全角かどうかチェック\r\n- [x] 都道府県情報の入力有無\r\n- [x] 趣味の欄をバリデーション\r\n- [x] スペースのエスケープ処理\r\n- [x] 全角スペース エスケープ処理\r\n- [x] ユーザーデータをDBに保存\r\n- [x] リダイレクト時にエスケープ後の値をフォーム画面に入力\r\n\r\nhttps://github.com/thori0908/training/issues/39","created_at":"2015-04-17T07:49:23Z","updated_at":"2015-04-22T04:21:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"80df88b361b7be0d57c49ecfadbd1f7e9a9780bc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/thori0908/laravel_training/pulls/4/commits","review_comments_url":"https://api.github.com/repos/thori0908/laravel_training/pulls/4/comments","review_comment_url":"https://api.github.com/repos/thori0908/laravel_training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/thori0908/laravel_training/issues/4/comments","statuses_url":"https://api.github.com/repos/thori0908/laravel_training/statuses/1f2bb595eab3c1d642759f5df5898eb5b58c0f91","head":{"label":"thori0908:feature/issue39","ref":"feature/issue39","sha":"1f2bb595eab3c1d642759f5df5898eb5b58c0f91","user":{"login":"thori0908","id":7833726,"avatar_url":"https://avatars.githubusercontent.com/u/7833726?v=3","gravatar_id":"","url":"https://api.github.com/users/thori0908","html_url":"https://github.com/thori0908","followers_url":"https://api.github.com/users/thori0908/followers","following_url":"https://api.github.com/users/thori0908/following{/other_user}","gists_url":"https://api.github.com/users/thori0908/gists{/gist_id}","starred_url":"https://api.github.com/users/thori0908/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thori0908/subscriptions","organizations_url":"https://api.github.com/users/thori0908/orgs","repos_url":"https://api.github.com/users/thori0908/repos","events_url":"https://api.github.com/users/thori0908/events{/privacy}","received_events_url":"https://api.github.com/users/thori0908/received_events","type":"User","site_admin":false},"repo":{"id":33034818,"name":"laravel_training","full_name":"thori0908/laravel_training","owner":{"login":"thori0908","id":7833726,"avatar_url":"https://avatars.githubusercontent.com/u/7833726?v=3","gravatar_id":"","url":"https://api.github.com/users/thori0908","html_url":"https://github.com/thori0908","followers_url":"https://api.github.com/users/thori0908/followers","following_url":"https://api.github.com/users/thori0908/following{/other_user}","gists_url":"https://api.github.com/users/thori0908/gists{/gist_id}","starred_url":"https://api.github.com/users/thori0908/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thori0908/subscriptions","organizations_url":"https://api.github.com/users/thori0908/orgs","repos_url":"https://api.github.com/users/thori0908/repos","events_url":"https://api.github.com/users/thori0908/events{/privacy}","received_events_url":"https://api.github.com/users/thori0908/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thori0908/laravel_training","description":"","fork":false,"url":"https://api.github.com/repos/thori0908/laravel_training","forks_url":"https://api.github.com/repos/thori0908/laravel_training/forks","keys_url":"https://api.github.com/repos/thori0908/laravel_training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thori0908/laravel_training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thori0908/laravel_training/teams","hooks_url":"https://api.github.com/repos/thori0908/laravel_training/hooks","issue_events_url":"https://api.github.com/repos/thori0908/laravel_training/issues/events{/number}","events_url":"https://api.github.com/repos/thori0908/laravel_training/events","assignees_url":"https://api.github.com/repos/thori0908/laravel_training/assignees{/user}","branches_url":"https://api.github.com/repos/thori0908/laravel_training/branches{/branch}","tags_url":"https://api.github.com/repos/thori0908/laravel_training/tags","blobs_url":"https://api.github.com/repos/thori0908/laravel_training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thori0908/laravel_training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thori0908/laravel_training/git/refs{/sha}","trees_url":"https://api.github.com/repos/thori0908/laravel_training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thori0908/laravel_training/statuses/{sha}","languages_url":"https://api.github.com/repos/thori0908/laravel_training/languages","stargazers_url":"https://api.github.com/repos/thori0908/laravel_training/stargazers","contributors_url":"https://api.github.com/repos/thori0908/laravel_training/contributors","subscribers_url":"https://api.github.com/repos/thori0908/laravel_training/subscribers","subscription_url":"https://api.github.com/repos/thori0908/laravel_training/subscription","commits_url":"https://api.github.com/repos/thori0908/laravel_training/commits{/sha}","git_commits_url":"https://api.github.com/repos/thori0908/laravel_training/git/commits{/sha}","comments_url":"https://api.github.com/repos/thori0908/laravel_training/comments{/number}","issue_comment_url":"https://api.github.com/repos/thori0908/laravel_training/issues/comments{/number}","contents_url":"https://api.github.com/repos/thori0908/laravel_training/contents/{+path}","compare_url":"https://api.github.com/repos/thori0908/laravel_training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thori0908/laravel_training/merges","archive_url":"https://api.github.com/repos/thori0908/laravel_training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thori0908/laravel_training/downloads","issues_url":"https://api.github.com/repos/thori0908/laravel_training/issues{/number}","pulls_url":"https://api.github.com/repos/thori0908/laravel_training/pulls{/number}","milestones_url":"https://api.github.com/repos/thori0908/laravel_training/milestones{/number}","notifications_url":"https://api.github.com/repos/thori0908/laravel_training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thori0908/laravel_training/labels{/name}","releases_url":"https://api.github.com/repos/thori0908/laravel_training/releases{/id}","created_at":"2015-03-28T13:43:24Z","updated_at":"2015-04-16T07:51:25Z","pushed_at":"2015-04-22T03:29:13Z","git_url":"git://github.com/thori0908/laravel_training.git","ssh_url":"git@github.com:thori0908/laravel_training.git","clone_url":"https://github.com/thori0908/laravel_training.git","svn_url":"https://github.com/thori0908/laravel_training","homepage":null,"size":368,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"thori0908:master","ref":"master","sha":"e14c7af0405994c9fd9459ed6609c525cb06d99c","user":{"login":"thori0908","id":7833726,"avatar_url":"https://avatars.githubusercontent.com/u/7833726?v=3","gravatar_id":"","url":"https://api.github.com/users/thori0908","html_url":"https://github.com/thori0908","followers_url":"https://api.github.com/users/thori0908/followers","following_url":"https://api.github.com/users/thori0908/following{/other_user}","gists_url":"https://api.github.com/users/thori0908/gists{/gist_id}","starred_url":"https://api.github.com/users/thori0908/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thori0908/subscriptions","organizations_url":"https://api.github.com/users/thori0908/orgs","repos_url":"https://api.github.com/users/thori0908/repos","events_url":"https://api.github.com/users/thori0908/events{/privacy}","received_events_url":"https://api.github.com/users/thori0908/received_events","type":"User","site_admin":false},"repo":{"id":33034818,"name":"laravel_training","full_name":"thori0908/laravel_training","owner":{"login":"thori0908","id":7833726,"avatar_url":"https://avatars.githubusercontent.com/u/7833726?v=3","gravatar_id":"","url":"https://api.github.com/users/thori0908","html_url":"https://github.com/thori0908","followers_url":"https://api.github.com/users/thori0908/followers","following_url":"https://api.github.com/users/thori0908/following{/other_user}","gists_url":"https://api.github.com/users/thori0908/gists{/gist_id}","starred_url":"https://api.github.com/users/thori0908/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thori0908/subscriptions","organizations_url":"https://api.github.com/users/thori0908/orgs","repos_url":"https://api.github.com/users/thori0908/repos","events_url":"https://api.github.com/users/thori0908/events{/privacy}","received_events_url":"https://api.github.com/users/thori0908/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thori0908/laravel_training","description":"","fork":false,"url":"https://api.github.com/repos/thori0908/laravel_training","forks_url":"https://api.github.com/repos/thori0908/laravel_training/forks","keys_url":"https://api.github.com/repos/thori0908/laravel_training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thori0908/laravel_training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thori0908/laravel_training/teams","hooks_url":"https://api.github.com/repos/thori0908/laravel_training/hooks","issue_events_url":"https://api.github.com/repos/thori0908/laravel_training/issues/events{/number}","events_url":"https://api.github.com/repos/thori0908/laravel_training/events","assignees_url":"https://api.github.com/repos/thori0908/laravel_training/assignees{/user}","branches_url":"https://api.github.com/repos/thori0908/laravel_training/branches{/branch}","tags_url":"https://api.github.com/repos/thori0908/laravel_training/tags","blobs_url":"https://api.github.com/repos/thori0908/laravel_training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thori0908/laravel_training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thori0908/laravel_training/git/refs{/sha}","trees_url":"https://api.github.com/repos/thori0908/laravel_training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thori0908/laravel_training/statuses/{sha}","languages_url":"https://api.github.com/repos/thori0908/laravel_training/languages","stargazers_url":"https://api.github.com/repos/thori0908/laravel_training/stargazers","contributors_url":"https://api.github.com/repos/thori0908/laravel_training/contributors","subscribers_url":"https://api.github.com/repos/thori0908/laravel_training/subscribers","subscription_url":"https://api.github.com/repos/thori0908/laravel_training/subscription","commits_url":"https://api.github.com/repos/thori0908/laravel_training/commits{/sha}","git_commits_url":"https://api.github.com/repos/thori0908/laravel_training/git/commits{/sha}","comments_url":"https://api.github.com/repos/thori0908/laravel_training/comments{/number}","issue_comment_url":"https://api.github.com/repos/thori0908/laravel_training/issues/comments{/number}","contents_url":"https://api.github.com/repos/thori0908/laravel_training/contents/{+path}","compare_url":"https://api.github.com/repos/thori0908/laravel_training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thori0908/laravel_training/merges","archive_url":"https://api.github.com/repos/thori0908/laravel_training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thori0908/laravel_training/downloads","issues_url":"https://api.github.com/repos/thori0908/laravel_training/issues{/number}","pulls_url":"https://api.github.com/repos/thori0908/laravel_training/pulls{/number}","milestones_url":"https://api.github.com/repos/thori0908/laravel_training/milestones{/number}","notifications_url":"https://api.github.com/repos/thori0908/laravel_training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thori0908/laravel_training/labels{/name}","releases_url":"https://api.github.com/repos/thori0908/laravel_training/releases{/id}","created_at":"2015-03-28T13:43:24Z","updated_at":"2015-04-16T07:51:25Z","pushed_at":"2015-04-22T03:29:13Z","git_url":"git://github.com/thori0908/laravel_training.git","ssh_url":"git@github.com:thori0908/laravel_training.git","clone_url":"https://github.com/thori0908/laravel_training.git","svn_url":"https://github.com/thori0908/laravel_training","homepage":null,"size":368,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/thori0908/laravel_training/pulls/4"},"html":{"href":"https://github.com/thori0908/laravel_training/pull/4"},"issue":{"href":"https://api.github.com/repos/thori0908/laravel_training/issues/4"},"comments":{"href":"https://api.github.com/repos/thori0908/laravel_training/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/thori0908/laravel_training/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/thori0908/laravel_training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/thori0908/laravel_training/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/thori0908/laravel_training/statuses/1f2bb595eab3c1d642759f5df5898eb5b58c0f91"}}}}