Nwidart\Modules\Support\Stub::createFromPath PHP Method

createFromPath() public static method

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