classes/Routing/Wildcard.php
public function detectControllerClass($name = null)
    {
        // The path must begin with the config dir
        if (!preg_match('#^'.$this->dir.'#i', $this->path, $matches)) {
            return false;
        }

        // Find the controller from the end of the path
        if (!$name) {
            $name = $this->detectControllerName();
        }

        // Form the namespaced controller
        return Str::studly($name);
    }
public function detectControllerClass($name = null)
    {
        // The path must begin with the config dir
        if (!preg_match('#^'.$this->dir.'#i', $this->path, $matches)) {
            return false;
        }

        // Find the controller from the end of the path
        if (!$name) {
            $name = $this->detectControllerName();
        }

        // Form the namespaced controller
        return Str::studly($name);
    }
public function detectControllerClass ( $ name = null ) { // The path must begin with the config dir if ( ! preg_match ( '#^' . $ this -> dir . '#i' , $ this -> path , $ matches ) ) { return false ; } // Find the controller from the end of the path if ( ! $ name ) { $ name = $ this -> detectControllerName ( ) ; } // Form the namespaced controller return Str :: studly ( $ name ) ; }
Detect the controller for a path.  Which is the last non-action
string in the path

@return string The controller class, i.e. Articles
Detect the controller for a path . Which is the last non - action string in the path