public function setRouteNameFromRequest(Request $request)
    {
        $routeName = $this->routeTranslator->getRouteNameFromPath(
            $request->getUri(), $this->getCurrentLocale()
        );

        $this->routeTranslator->setCurrentRoute($routeName);
    }
public function setRouteNameFromRequest(Request $request)
    {
        $routeName = $this->routeTranslator->getRouteNameFromPath(
            $request->getUri(), $this->getCurrentLocale()
        );

        $this->routeTranslator->setCurrentRoute($routeName);
    }
public function setRouteNameFromRequest ( Request $ request ) { $ routeName = $ this -> routeTranslator -> getRouteNameFromPath ( $ request -> getUri ( ) , $ this -> getCurrentLocale ( ) ) ; $ this -> routeTranslator -> setCurrentRoute ( $ routeName ) ; }
Set route name from request.

@param  \Illuminate\Http\Request  $request
Set route name from request .