protected function shareRequestInUrl()
    {
        $this->app['events']->listen('Illuminate\Routing\Events\RouteMatched', function (RouteMatched $event) {
            foreach ($event->route->parameters() as $k => $v) {
                $this->app['url']->share($k, $v);
            }
        });
    }