{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/internals/issues/180","repository_url":"https://api.github.com/repos/laravel/internals","labels_url":"https://api.github.com/repos/laravel/internals/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/laravel/internals/issues/180/comments","events_url":"https://api.github.com/repos/laravel/internals/issues/180/events","html_url":"https://github.com/laravel/internals/issues/180","id":173382902,"number":180,"title":"[Proposal] Add an `update` method to URLGenerator","user":{"login":"shulard","id":482993,"avatar_url":"https://avatars.githubusercontent.com/u/482993?v=3","gravatar_id":"","url":"https://api.github.com/users/shulard","html_url":"https://github.com/shulard","followers_url":"https://api.github.com/users/shulard/followers","following_url":"https://api.github.com/users/shulard/following{/other_user}","gists_url":"https://api.github.com/users/shulard/gists{/gist_id}","starred_url":"https://api.github.com/users/shulard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shulard/subscriptions","organizations_url":"https://api.github.com/users/shulard/orgs","repos_url":"https://api.github.com/users/shulard/repos","events_url":"https://api.github.com/users/shulard/events{/privacy}","received_events_url":"https://api.github.com/users/shulard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-26T06:57:54Z","updated_at":"2016-08-26T06:58:31Z","closed_at":null,"body":"Hello !\r\n\r\nSometimes you are going to make a link to the current page with an added parameter. If your route already contains some parameters it require repetition. I think adding an `update` method to `URLGenerator` will help to handle that case.\r\n\r\nExample :\r\n\r\n```php\r\n//Imagine a filter page\r\n$url = route('filter', ['filter1' => '0', 'filter2' => '4']);\r\n\r\n//If I navigate to that URL then, I need to repeat the whole parameter list to add a new filter\r\n$url = route(Route::current()->getName(), ['filter1' => '0', 'filter2' => '4', 'filter3' => '5']);\r\n\r\n//With an update method \r\n$url = url()->update(['filter3' => '5']);\r\n```\r\n\r\nWhat are you think about it ?"},"comment":{"url":"https://api.github.com/repos/laravel/internals/issues/comments/242645929","html_url":"https://github.com/laravel/internals/issues/180#issuecomment-242645929","issue_url":"https://api.github.com/repos/laravel/internals/issues/180","id":242645929,"user":{"login":"shulard","id":482993,"avatar_url":"https://avatars.githubusercontent.com/u/482993?v=3","gravatar_id":"","url":"https://api.github.com/users/shulard","html_url":"https://github.com/shulard","followers_url":"https://api.github.com/users/shulard/followers","following_url":"https://api.github.com/users/shulard/following{/other_user}","gists_url":"https://api.github.com/users/shulard/gists{/gist_id}","starred_url":"https://api.github.com/users/shulard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shulard/subscriptions","organizations_url":"https://api.github.com/users/shulard/orgs","repos_url":"https://api.github.com/users/shulard/repos","events_url":"https://api.github.com/users/shulard/events{/privacy}","received_events_url":"https://api.github.com/users/shulard/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T06:58:31Z","updated_at":"2016-08-26T06:58:31Z","body":"I've already implemented it on different Laravel projects for my particular needs. Hope this can help someone else 😄."}}
{"actor":{"display_login":"shulard"}}