protected function registerRoute($method, $uri, $action = null)
    {
        if (! is_array($action)) {
            $action = array_merge($this->attributes, $action ? ['uses' => $action] : []);
        }

        return $this->router->{$method}($uri, $this->compileAction($action));
    }
protected function registerRoute($method, $uri, $action = null)
    {
        if (! is_array($action)) {
            $action = array_merge($this->attributes, $action ? ['uses' => $action] : []);
        }

        return $this->router->{$method}($uri, $this->compileAction($action));
    }
protected function registerRoute ( $ method , $ uri , $ action = null ) { if ( ! is_array ( $ action ) ) { $ action = array_merge ( $ this -> attributes , $ action ? [ 'uses' => $ action ] : [ ] ) ; } return $ this -> router -> { $ method } ( $ uri , $ this -> compileAction ( $ action ) ) ; }
Register a new route with the router.

@param  string  $method
@param  string  $uri
@param  \Closure|array|string|null  $action
@return \Illuminate\Routing\Route
Register a new route with the router .