{"action":"created","comment":{"url":"https://api.github.com/repos/laravel-china/laravel-docs/pulls/comments/77972068","id":77972068,"diff_hunk":"@@ -146,20 +150,21 @@ To assign middleware to all routes within a group, you may use the `middleware`\n     });\n \n <a name=\"route-group-namespaces\"></a>\n-### Namespaces\n+### 命名空间\n \n-Another common use-case for route groups is assigning the same PHP namespace to a group of controllers using the `namespace` parameter in the group array:\n+另一个常见的例子是，指定相同的 PHP 命名空间给控制器群组。可以使用 namespace 参数来指定群组内所有控制器的公共命名空间：\n \n     Route::group(['namespace' => 'Admin'], function() {\n         // Controllers Within The \"App\\Http\\Controllers\\Admin\" Namespace\n     });\n \n-Remember, by default, the `RouteServiceProvider` includes your route files within a namespace group, allowing you to register controller routes without specifying the full `App\\Http\\Controllers` namespace prefix. So, you only need to specify the portion of the namespace that comes after the base `App\\Http\\Controllers` namespace.\n+请记住，默认 `RouteServiceProvider` 会在命名空间群组中引入你的路由文件，让你不用指定完整的 `App\\Http\\Controllers` 命名空间前缀就能注册控制器路由，因此，我们在定义的时候只需要指定命名空 `App\\Http\\Controllers` 以后的部分。","path":"routing.md","position":196,"original_position":196,"commit_id":"b3203fef46b646830425b21c196b8b835c42b557","original_commit_id":"b3203fef46b646830425b21c196b8b835c42b557","user":{"login":"overtrue","id":1472352,"avatar_url":"https://avatars.githubusercontent.com/u/1472352?v=3","gravatar_id":"","url":"https://api.github.com/users/overtrue","html_url":"https://github.com/overtrue","followers_url":"https://api.github.com/users/overtrue/followers","following_url":"https://api.github.com/users/overtrue/following{/other_user}","gists_url":"https://api.github.com/users/overtrue/gists{/gist_id}","starred_url":"https://api.github.com/users/overtrue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/overtrue/subscriptions","organizations_url":"https://api.github.com/users/overtrue/orgs","repos_url":"https://api.github.com/users/overtrue/repos","events_url":"https://api.github.com/users/overtrue/events{/privacy}","received_events_url":"https://api.github.com/users/overtrue/received_events","type":"User","site_admin":false},"body":"```diff\r\n- 因此，我们在定义的时候只需要指定命名空\r\n+ 因此，我们在定义的时候只需要指定命名空间\r\n```","created_at":"2016-09-08T09:18:45Z","updated_at":"2016-09-08T09:18:45Z","html_url":"https://github.com/laravel-china/laravel-docs/pull/4#discussion_r77972068","pull_request_url":"https://api.github.com/repos/laravel-china/laravel-docs/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/laravel-china/laravel-docs/pulls/comments/77972068"},"html":{"href":"https://github.com/laravel-china/laravel-docs/pull/4#discussion_r77972068"},"pull_request":{"href":"https://api.github.com/repos/laravel-china/laravel-docs/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/laravel-china/laravel-docs/pulls/4","id":84438456,"html_url":"https://github.com/laravel-china/laravel-docs/pull/4","diff_url":"https://github.com/laravel-china/laravel-docs/pull/4.diff","patch_url":"https://github.com/laravel-china/laravel-docs/pull/4.patch","issue_url":"https://api.github.com/repos/laravel-china/laravel-docs/issues/4","number":4,"state":"open","locked":false,"title":"routing 翻译第一版","user":{"login":"kzh4435","id":10300435,"avatar_url":"https://avatars.githubusercontent.com/u/10300435?v=3","gravatar_id":"","url":"https://api.github.com/users/kzh4435","html_url":"https://github.com/kzh4435","followers_url":"https://api.github.com/users/kzh4435/followers","following_url":"https://api.github.com/users/kzh4435/following{/other_user}","gists_url":"https://api.github.com/users/kzh4435/gists{/gist_id}","starred_url":"https://api.github.com/users/kzh4435/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzh4435/subscriptions","organizations_url":"https://api.github.com/users/kzh4435/orgs","repos_url":"https://api.github.com/users/kzh4435/repos","events_url":"https://api.github.com/users/kzh4435/events{/privacy}","received_events_url":"https://api.github.com/users/kzh4435/received_events","type":"User","site_admin":false},"body":"routing 翻译第一版","created_at":"2016-09-08T08:56:44Z","updated_at":"2016-09-08T09:18:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d88568fdf21f40c8071220e8a0e02c2ba7d835c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/laravel-china/laravel-docs/pulls/4/commits","review_comments_url":"https://api.github.com/repos/laravel-china/laravel-docs/pulls/4/comments","review_comment_url":"https://api.github.com/repos/laravel-china/laravel-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel-china/laravel-docs/issues/4/comments","statuses_url":"https://api.github.com/repos/laravel-china/laravel-docs/statuses/b3203fef46b646830425b21c196b8b835c42b557","head":{"label":"kzh4435:5.3","ref":"5.3","sha":"b3203fef46b646830425b21c196b8b835c42b557","user":{"login":"kzh4435","id":10300435,"avatar_url":"https://avatars.githubusercontent.com/u/10300435?v=3","gravatar_id":"","url":"https://api.github.com/users/kzh4435","html_url":"https://github.com/kzh4435","followers_url":"https://api.github.com/users/kzh4435/followers","following_url":"https://api.github.com/users/kzh4435/following{/other_user}","gists_url":"https://api.github.com/users/kzh4435/gists{/gist_id}","starred_url":"https://api.github.com/users/kzh4435/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzh4435/subscriptions","organizations_url":"https://api.github.com/users/kzh4435/orgs","repos_url":"https://api.github.com/users/kzh4435/repos","events_url":"https://api.github.com/users/kzh4435/events{/privacy}","received_events_url":"https://api.github.com/users/kzh4435/received_events","type":"User","site_admin":false},"repo":{"id":67668991,"name":"laravel-docs","full_name":"kzh4435/laravel-docs","owner":{"login":"kzh4435","id":10300435,"avatar_url":"https://avatars.githubusercontent.com/u/10300435?v=3","gravatar_id":"","url":"https://api.github.com/users/kzh4435","html_url":"https://github.com/kzh4435","followers_url":"https://api.github.com/users/kzh4435/followers","following_url":"https://api.github.com/users/kzh4435/following{/other_user}","gists_url":"https://api.github.com/users/kzh4435/gists{/gist_id}","starred_url":"https://api.github.com/users/kzh4435/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzh4435/subscriptions","organizations_url":"https://api.github.com/users/kzh4435/orgs","repos_url":"https://api.github.com/users/kzh4435/repos","events_url":"https://api.github.com/users/kzh4435/events{/privacy}","received_events_url":"https://api.github.com/users/kzh4435/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kzh4435/laravel-docs","description":null,"fork":true,"url":"https://api.github.com/repos/kzh4435/laravel-docs","forks_url":"https://api.github.com/repos/kzh4435/laravel-docs/forks","keys_url":"https://api.github.com/repos/kzh4435/laravel-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kzh4435/laravel-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kzh4435/laravel-docs/teams","hooks_url":"https://api.github.com/repos/kzh4435/laravel-docs/hooks","issue_events_url":"https://api.github.com/repos/kzh4435/laravel-docs/issues/events{/number}","events_url":"https://api.github.com/repos/kzh4435/laravel-docs/events","assignees_url":"https://api.github.com/repos/kzh4435/laravel-docs/assignees{/user}","branches_url":"https://api.github.com/repos/kzh4435/laravel-docs/branches{/branch}","tags_url":"https://api.github.com/repos/kzh4435/laravel-docs/tags","blobs_url":"https://api.github.com/repos/kzh4435/laravel-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kzh4435/laravel-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kzh4435/laravel-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/kzh4435/laravel-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kzh4435/laravel-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/kzh4435/laravel-docs/languages","stargazers_url":"https://api.github.com/repos/kzh4435/laravel-docs/stargazers","contributors_url":"https://api.github.com/repos/kzh4435/laravel-docs/contributors","subscribers_url":"https://api.github.com/repos/kzh4435/laravel-docs/subscribers","subscription_url":"https://api.github.com/repos/kzh4435/laravel-docs/subscription","commits_url":"https://api.github.com/repos/kzh4435/laravel-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/kzh4435/laravel-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/kzh4435/laravel-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/kzh4435/laravel-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/kzh4435/laravel-docs/contents/{+path}","compare_url":"https://api.github.com/repos/kzh4435/laravel-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kzh4435/laravel-docs/merges","archive_url":"https://api.github.com/repos/kzh4435/laravel-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kzh4435/laravel-docs/downloads","issues_url":"https://api.github.com/repos/kzh4435/laravel-docs/issues{/number}","pulls_url":"https://api.github.com/repos/kzh4435/laravel-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/kzh4435/laravel-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/kzh4435/laravel-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kzh4435/laravel-docs/labels{/name}","releases_url":"https://api.github.com/repos/kzh4435/laravel-docs/releases{/id}","deployments_url":"https://api.github.com/repos/kzh4435/laravel-docs/deployments","created_at":"2016-09-08T04:42:43Z","updated_at":"2016-09-08T04:30:52Z","pushed_at":"2016-09-08T08:21:47Z","git_url":"git://github.com/kzh4435/laravel-docs.git","ssh_url":"git@github.com:kzh4435/laravel-docs.git","clone_url":"https://github.com/kzh4435/laravel-docs.git","svn_url":"https://github.com/kzh4435/laravel-docs","homepage":null,"size":4254,"stargazers_count":0,"watchers_count":0,"language":null,"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":"5.3"}},"base":{"label":"laravel-china:5.3","ref":"5.3","sha":"9ebbad850e57829b31f5ff20ee41db49c104e9de","user":{"login":"laravel-china","id":8603319,"avatar_url":"https://avatars.githubusercontent.com/u/8603319?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel-china","html_url":"https://github.com/laravel-china","followers_url":"https://api.github.com/users/laravel-china/followers","following_url":"https://api.github.com/users/laravel-china/following{/other_user}","gists_url":"https://api.github.com/users/laravel-china/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel-china/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel-china/subscriptions","organizations_url":"https://api.github.com/users/laravel-china/orgs","repos_url":"https://api.github.com/users/laravel-china/repos","events_url":"https://api.github.com/users/laravel-china/events{/privacy}","received_events_url":"https://api.github.com/users/laravel-china/received_events","type":"Organization","site_admin":false},"repo":{"id":67663220,"name":"laravel-docs","full_name":"laravel-china/laravel-docs","owner":{"login":"laravel-china","id":8603319,"avatar_url":"https://avatars.githubusercontent.com/u/8603319?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel-china","html_url":"https://github.com/laravel-china","followers_url":"https://api.github.com/users/laravel-china/followers","following_url":"https://api.github.com/users/laravel-china/following{/other_user}","gists_url":"https://api.github.com/users/laravel-china/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel-china/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel-china/subscriptions","organizations_url":"https://api.github.com/users/laravel-china/orgs","repos_url":"https://api.github.com/users/laravel-china/repos","events_url":"https://api.github.com/users/laravel-china/events{/privacy}","received_events_url":"https://api.github.com/users/laravel-china/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel-china/laravel-docs","description":null,"fork":false,"url":"https://api.github.com/repos/laravel-china/laravel-docs","forks_url":"https://api.github.com/repos/laravel-china/laravel-docs/forks","keys_url":"https://api.github.com/repos/laravel-china/laravel-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel-china/laravel-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel-china/laravel-docs/teams","hooks_url":"https://api.github.com/repos/laravel-china/laravel-docs/hooks","issue_events_url":"https://api.github.com/repos/laravel-china/laravel-docs/issues/events{/number}","events_url":"https://api.github.com/repos/laravel-china/laravel-docs/events","assignees_url":"https://api.github.com/repos/laravel-china/laravel-docs/assignees{/user}","branches_url":"https://api.github.com/repos/laravel-china/laravel-docs/branches{/branch}","tags_url":"https://api.github.com/repos/laravel-china/laravel-docs/tags","blobs_url":"https://api.github.com/repos/laravel-china/laravel-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel-china/laravel-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel-china/laravel-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel-china/laravel-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel-china/laravel-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel-china/laravel-docs/languages","stargazers_url":"https://api.github.com/repos/laravel-china/laravel-docs/stargazers","contributors_url":"https://api.github.com/repos/laravel-china/laravel-docs/contributors","subscribers_url":"https://api.github.com/repos/laravel-china/laravel-docs/subscribers","subscription_url":"https://api.github.com/repos/laravel-china/laravel-docs/subscription","commits_url":"https://api.github.com/repos/laravel-china/laravel-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel-china/laravel-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel-china/laravel-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel-china/laravel-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel-china/laravel-docs/contents/{+path}","compare_url":"https://api.github.com/repos/laravel-china/laravel-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel-china/laravel-docs/merges","archive_url":"https://api.github.com/repos/laravel-china/laravel-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel-china/laravel-docs/downloads","issues_url":"https://api.github.com/repos/laravel-china/laravel-docs/issues{/number}","pulls_url":"https://api.github.com/repos/laravel-china/laravel-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel-china/laravel-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel-china/laravel-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel-china/laravel-docs/labels{/name}","releases_url":"https://api.github.com/repos/laravel-china/laravel-docs/releases{/id}","deployments_url":"https://api.github.com/repos/laravel-china/laravel-docs/deployments","created_at":"2016-09-08T03:00:37Z","updated_at":"2016-09-08T07:59:41Z","pushed_at":"2016-09-08T08:56:44Z","git_url":"git://github.com/laravel-china/laravel-docs.git","ssh_url":"git@github.com:laravel-china/laravel-docs.git","clone_url":"https://github.com/laravel-china/laravel-docs.git","svn_url":"https://github.com/laravel-china/laravel-docs","homepage":null,"size":4262,"stargazers_count":6,"watchers_count":6,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":1,"forks":11,"open_issues":1,"watchers":6,"default_branch":"5.3"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel-china/laravel-docs/pulls/4"},"html":{"href":"https://github.com/laravel-china/laravel-docs/pull/4"},"issue":{"href":"https://api.github.com/repos/laravel-china/laravel-docs/issues/4"},"comments":{"href":"https://api.github.com/repos/laravel-china/laravel-docs/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel-china/laravel-docs/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel-china/laravel-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel-china/laravel-docs/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/laravel-china/laravel-docs/statuses/b3203fef46b646830425b21c196b8b835c42b557"}}}}
{"actor":{"display_login":"overtrue"}}