classes/Routing/Wildcard.php
public function detectController($class_name = null)
    {

        // Setup the two schemes
        if (!$class_name) {
            $class_name = $this->detectControllerClass();
        }
        $app = 'App\\Http\\Controllers\\'
            . ucfirst(Str::studly($this->dir))
            . '\\'.$class_name;
        $decoy = 'Bkwld\Decoy\Controllers\\'.$class_name;

        // Find the right one
        if (class_exists($app)) {
            return $app;
        } elseif (class_exists($decoy)) {
            return $decoy;
        }

        return false;
    }
public function detectController($class_name = null)
    {

        // Setup the two schemes
        if (!$class_name) {
            $class_name = $this->detectControllerClass();
        }
        $app = 'App\\Http\\Controllers\\'
            . ucfirst(Str::studly($this->dir))
            . '\\'.$class_name;
        $decoy = 'Bkwld\Decoy\Controllers\\'.$class_name;

        // Find the right one
        if (class_exists($app)) {
            return $app;
        } elseif (class_exists($decoy)) {
            return $decoy;
        }

        return false;
    }
public function detectController ( $ class_name = null ) { // Setup the two schemes if ( ! $ class_name ) { $ class_name = $ this -> detectControllerClass ( ) ; } $ app = 'App\\Http\\Controllers\\' . ucfirst ( Str :: studly ( $ this -> dir ) ) . '\\' . $ class_name ; $ decoy = 'Bkwld\Decoy\Controllers\\' . $ class_name ; // Find the right one if ( class_exists ( $ app ) ) { return $ app ; } elseif ( class_exists ( $ decoy ) ) { return $ decoy ; } return false ; }
Get the full namespaced controller

@return string i.e. App\Http\Controllers\Admin\People or
Bkwld\Decoy\Controllers\Admins
Get the full namespaced controller