Nwidart\Modules\Support\Stub::createFromPath PHP 메소드

createFromPath() 공개 정적인 메소드

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