public function getInterfaceSlug(): string
    {
        $path = $this->getBasePath();
        $subDir = App::$Properties->get('basePath');
        if ($subDir !== '/') {
            $offset = (int)Str::length($subDir);
            $path = Str::sub($path, --$offset);
        }
        return $path;
    }
public function getInterfaceSlug(): string
    {
        $path = $this->getBasePath();
        $subDir = App::$Properties->get('basePath');
        if ($subDir !== '/') {
            $offset = (int)Str::length($subDir);
            $path = Str::sub($path, --$offset);
        }
        return $path;
    }
public function getInterfaceSlug ( ) : string { $ path = $ this -> getBasePath ( ) ; $ subDir = App :: $ Properties -> get ( 'basePath' ) ; if ( $ subDir !== '/' ) { $ offset = ( int ) Str :: length ( $ subDir ) ; $ path = Str :: sub ( $ path , -- $ offset ) ; } return $ path ; }
Get base path from current environment without basePath of subdirectories
@return string
Get base path from current environment without basePath of subdirectories