Nwidart\Modules\Support\Stub::createFromPath PHP Méthode

createFromPath() public static méthode

Create new self instance from full path.
public static createFromPath ( string $path, array $replaces = [] ) : self
$path string
$replaces array
Résultat self
    public static function createFromPath($path, array $replaces = [])
    {
        $stub = static::create($path, $replaces);
        $stub->setBasePath('');
        return $stub;
    }