protected function getStub($name)
    {
        if (is_file($path = base_path("resources/stubs/vendor/crud-generator/{$this->stubsGroup}/$name.stub"))) {
            return file_get_contents($path);
        }

        if (is_file($path = __DIR__."/../resources/stubs/{$this->stubsGroup}/$name.stub")) {
            return file_get_contents($path);
        }

        return '';
    }
protected function getStub($name)
    {
        if (is_file($path = base_path("resources/stubs/vendor/crud-generator/{$this->stubsGroup}/$name.stub"))) {
            return file_get_contents($path);
        }

        if (is_file($path = __DIR__."/../resources/stubs/{$this->stubsGroup}/$name.stub")) {
            return file_get_contents($path);
        }

        return '';
    }
protected function getStub ( $ name ) { if ( is_file ( $ path = base_path ( "resources/stubs/vendor/crud-generator/{$this->stubsGroup}/$name.stub" ) ) ) { return file_get_contents ( $ path ) ; } if ( is_file ( $ path = __DIR__ . "/../resources/stubs/{$this->stubsGroup}/$name.stub" ) ) { return file_get_contents ( $ path ) ; } return '' ; }
Retourne le contenu d'un template.

@param  string $name
@return string
Retourne le contenu d un template .