{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/10342","labels_url":"https://api.github.com/repos/laravel/framework/issues/10342/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/10342/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/10342/events","html_url":"https://github.com/laravel/framework/issues/10342","id":107734601,"number":10342,"title":"Add UrlGenerator::share() like View::share()","user":{"login":"pilot911","id":4451709,"avatar_url":"https://avatars.githubusercontent.com/u/4451709?v=3","gravatar_id":"","url":"https://api.github.com/users/pilot911","html_url":"https://github.com/pilot911","followers_url":"https://api.github.com/users/pilot911/followers","following_url":"https://api.github.com/users/pilot911/following{/other_user}","gists_url":"https://api.github.com/users/pilot911/gists{/gist_id}","starred_url":"https://api.github.com/users/pilot911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pilot911/subscriptions","organizations_url":"https://api.github.com/users/pilot911/orgs","repos_url":"https://api.github.com/users/pilot911/repos","events_url":"https://api.github.com/users/pilot911/events{/privacy}","received_events_url":"https://api.github.com/users/pilot911/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-22T15:07:12Z","updated_at":"2015-09-23T00:26:50Z","closed_at":null,"body":"Hello. I have language locale assigned to many GET routes. I dont want to use \"prefix\" in routers.\r\nAnd it's so hard to write in every route() function line in parameters like:\r\n\r\nroute('named.route', [...., 'locale' => config('app.locale')]);\r\n\r\nI just want to have \"global\" keys (can set them in middleware)\r\n\r\nUrlGenerator::share(['locale' => config('app.locale')]);\r\n\r\nSo route() parameters will filled by UrlGenerator by default.\r\n\r\nThink this nice idea."},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/142461570","html_url":"https://github.com/laravel/framework/issues/10342#issuecomment-142461570","issue_url":"https://api.github.com/repos/laravel/framework/issues/10342","id":142461570,"user":{"login":"pilot911","id":4451709,"avatar_url":"https://avatars.githubusercontent.com/u/4451709?v=3","gravatar_id":"","url":"https://api.github.com/users/pilot911","html_url":"https://github.com/pilot911","followers_url":"https://api.github.com/users/pilot911/followers","following_url":"https://api.github.com/users/pilot911/following{/other_user}","gists_url":"https://api.github.com/users/pilot911/gists{/gist_id}","starred_url":"https://api.github.com/users/pilot911/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pilot911/subscriptions","organizations_url":"https://api.github.com/users/pilot911/orgs","repos_url":"https://api.github.com/users/pilot911/repos","events_url":"https://api.github.com/users/pilot911/events{/privacy}","received_events_url":"https://api.github.com/users/pilot911/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T00:26:50Z","updated_at":"2015-09-23T00:26:50Z","body":"Why View::share() then ? "}}