src/Aindong/Pluggables/Pluggables.php
public function getPluggablePath($slug, $allowNotExists = false)
    {
        $pluggable = Str::studly($slug);

        if (!$this->pathExists($pluggable) && $allowNotExists === false) {
            return;
        }

        return $this->getPath()."/{$pluggable}/";
    }
public function getPluggablePath($slug, $allowNotExists = false)
    {
        $pluggable = Str::studly($slug);

        if (!$this->pathExists($pluggable) && $allowNotExists === false) {
            return;
        }

        return $this->getPath()."/{$pluggable}/";
    }
public function getPluggablePath ( $ slug , $ allowNotExists = false ) { $ pluggable = Str :: studly ( $ slug ) ; if ( ! $ this -> pathExists ( $ pluggable ) && $ allowNotExists === false ) { return ; } return $ this -> getPath ( ) . "/{$pluggable}/" ; }
Get path for the specified pluggable.

@param string $slug

@return string
Get path for the specified pluggable .