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

getContents() public method

Get stub contents.
public getContents ( ) : mixed | string
return mixed | string
    public function getContents()
    {
        $contents = file_get_contents($this->getPath());
        foreach ($this->replaces as $search => $replace) {
            $contents = str_replace('$' . strtoupper($search) . '$', $replace, $contents);
        }
        return $contents;
    }