public function getContent(string $stubName)
    {
        $stub = $this->getStubFileContent($stubName);

        $requestFileContent = $this->replaceStubString($stub);

        $appNamespace = $this->getAppNamespace();

        $requestFileContent = str_replace(
            "App\Http\Requests",
            "{$appNamespace}Http\Requests",
            $requestFileContent
        );

        return $requestFileContent;
    }
public function getContent(string $stubName)
    {
        $stub = $this->getStubFileContent($stubName);

        $requestFileContent = $this->replaceStubString($stub);

        $appNamespace = $this->getAppNamespace();

        $requestFileContent = str_replace(
            "App\Http\Requests",
            "{$appNamespace}Http\Requests",
            $requestFileContent
        );

        return $requestFileContent;
    }
public function getContent ( string $ stubName ) { $ stub = $ this -> getStubFileContent ( $ stubName ) ; $ requestFileContent = $ this -> replaceStubString ( $ stub ) ; $ appNamespace = $ this -> getAppNamespace ( ) ; $ requestFileContent = str_replace ( "App\Http\Requests" , "{$appNamespace}Http\Requests" , $ requestFileContent ) ; return $ requestFileContent ; }
Get class file content.

@param  string  $stubName Name of stub file
@return string
Get class file content .