protected function getUri(){
        if (method_exists($this->route, 'getPath')){
            // Laravel <5.4
            return $this->route->getPath();
        }

        // Laravel 5.4+
        return $this->route->uri();
    }
protected function getUri(){
        if (method_exists($this->route, 'getPath')){
            // Laravel <5.4
            return $this->route->getPath();
        }

        // Laravel 5.4+
        return $this->route->uri();
    }
protected function getUri ( ) { if ( method_exists ( $ this -> route , 'getPath' ) ) { // Laravel <5.4 return $ this -> route -> getPath ( ) ; } // Laravel 5.4+ return $ this -> route -> uri ( ) ; }
Backwards compatible uri getter.

@return string
Backwards compatible uri getter .