packages/serbinario/l5scaffold/src/Console/Commands/CrudRepositoryCommand.php
/**
     *Adicona Providres ao arquivo SeracademicoRepositoryProvider.php
     */
Adicona Providres ao arquivo SeracademicoRepositoryProvider.php
Adicona Providres ao arquivo SeracademicoRepositoryProvider . php
protected function SetRepository($modelName){
        $this->buildRepository .= PHP_EOL;
        $this->buildRepository .= "\t\t\$this->app->bind(\n";
        $this->buildRepository .= "\t\t\t\\Softage\\Repositories\\" . Inflector::singularize($modelName)  . "Repository::class,\n";
        $this->buildRepository .= "\t\t\t\\Softage\\Repositories\\" . Inflector::singularize($modelName) . "RepositoryEloquent::class\n";
        $this->buildRepository .= "\t\t);\n";
        $this->buildRepository .= "\t}\n";
        $this->buildRepository .= "}";
        Generic::appendToEndOfFile(base_path(). "/app/Providers/SeracademicoRepositoryProvider.php", $this->buildRepository, 6, true);
    }
protected function SetRepository ( $ modelName ) { $ this -> buildRepository .= PHP_EOL ; $ this -> buildRepository .= " \t \t \$ this->app->bind( \n " ; $ this -> buildRepository .= " \t \t \t \\ Softage \\ Repositories \\ " . Inflector :: singularize ( $ modelName ) . " Repository::class, \n " ; $ this -> buildRepository .= " \t \t \t \\ Softage \\ Repositories \\ " . Inflector :: singularize ( $ modelName ) . " RepositoryEloquent::class \n " ; $ this -> buildRepository .= " \t \t ); \n " ; $ this -> buildRepository .= " \t } \n " ; $ this -> buildRepository .= " } " ; Generic :: appendToEndOfFile ( base_path ( ) . " /app/Providers/SeracademicoRepositoryProvider.php " , $ this -> buildRepository , 6 , true ) ; }
Adicona Providres ao arquivo SeracademicoRepositoryProvider.php
Adicona Providres ao arquivo SeracademicoRepositoryProvider . php