protected function getTemplate($templatePath)
    {
        $path = base_path('resources/generator-templates/'.$templatePath.'.stub');

        if (!file_exists($path)) {
            $path = __DIR__.'/../../templates/'.$templatePath.'.stub';
        }

        return $this->fileHelper->get($path);
    }
protected function getTemplate($templatePath)
    {
        $path = base_path('resources/generator-templates/'.$templatePath.'.stub');

        if (!file_exists($path)) {
            $path = __DIR__.'/../../templates/'.$templatePath.'.stub';
        }

        return $this->fileHelper->get($path);
    }
protected function getTemplate ( $ templatePath ) { $ path = base_path ( 'resources/generator-templates/' . $ templatePath . '.stub' ) ; if ( ! file_exists ( $ path ) ) { $ path = __DIR__ . '/../../templates/' . $ templatePath . '.stub' ; } return $ this -> fileHelper -> get ( $ path ) ; }
Get the template for the generator.

@param  string $templatePath
@return string
Get the template for the generator .