src/HttpServiceProvider.php
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);
            }
        });
    }
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);
            }
        });
    }
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 ) ; } } ) ; }
Register request params in url.
Register request params in url .