/home/techb158/immovalet.com/vendor/botble/dev-tool/src/Commands/Make
NameSizeModeActions
ControllerMakeCommand.php19090644editdlrm
FormMakeCommand.php18570644editdlrm
ModelMakeCommand.php18540644editdlrm
RepositoryMakeCommand.php27200644editdlrm
RequestMakeCommand.php18880644editdlrm
RouteMakeCommand.php18330644editdlrm
TableMakeCommand.php18640644editdlrm
Edit: /home/techb158/immovalet.com/vendor/botble/dev-tool/src/Commands/Make/RepositoryMakeCommand.php (2720B)
argument('name'))) { $this->error('Only alphabetic characters are allowed.'); return 1; } $name = $this->argument('name'); $stub = $this->getStub(); $path = $path = platform_path(strtolower($this->argument('module')) . '/src/Repositories'); $this->publishFile($stub . '/Interfaces/{Name}Interface.stub', $path, $name, 'Interfaces', 'Interface.php'); $this->publishFile($stub . '/Eloquent/{Name}Repository.stub', $path, $name, 'Eloquent', 'Repository.php'); $this->publishFile($stub . '/Caches/{Name}CacheDecorator.stub', $path, $name, 'Caches', 'CacheDecorator.php'); $this->line('------------------'); $this->info('Created successfully ' . $path . '!'); return 0; } /** * @param string $stub * @param string $path * @param string $name * @param string $prefix * @param string $extension * @throws FileNotFoundException * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException */ protected function publishFile(string $stub, string $path, string $name, string $prefix, string $extension) { $path = $path . '/' . $prefix . '/' . ucfirst(Str::studly($name)) . $extension; $this->publishStubs($stub, $path); $this->renameFiles($stub, $path); $this->searchAndReplaceInFiles($name, $path, File::get($stub)); } /** * {@inheritDoc} */ public function getStub(): string { return __DIR__ . '/../../../stubs/module/src/Repositories'; } /** * {@inheritDoc} */ public function getReplacements(string $replaceText): array { $module = explode('/', $this->argument('module')); $module = strtolower(end($module)); return [ '{Module}' => ucfirst(Str::camel($module)), ]; } }