src/Active.php
public function updateInstances($route, $request)
    {
        $this->request = $request;
        if ($request) {
            $this->uri = urldecode($request->path());
        }

        $this->route = $route;
        if ($route) {
            $this->action = $route->getActionName();

            $actionSegments   = Str::parseCallback($this->action, null);
            $this->controller = head($actionSegments);
            $this->method     = last($actionSegments);
        }
    }
public function updateInstances($route, $request)
    {
        $this->request = $request;
        if ($request) {
            $this->uri = urldecode($request->path());
        }

        $this->route = $route;
        if ($route) {
            $this->action = $route->getActionName();

            $actionSegments   = Str::parseCallback($this->action, null);
            $this->controller = head($actionSegments);
            $this->method     = last($actionSegments);
        }
    }
public function updateInstances ( $ route , $ request ) { $ this -> request = $ request ; if ( $ request ) { $ this -> uri = urldecode ( $ request -> path ( ) ) ; } $ this -> route = $ route ; if ( $ route ) { $ this -> action = $ route -> getActionName ( ) ; $ actionSegments = Str :: parseCallback ( $ this -> action , null ) ; $ this -> controller = head ( $ actionSegments ) ; $ this -> method = last ( $ actionSegments ) ; } }
Update the route and request instances

@param Route   $route
@param Request $request
Update the route and request instances