src/Commands/Create.php
public function renameModelsAndRepositories()
    {
        $moduleDir = base_path('Modules/'.$this->module);
        $paths = [
            $moduleDir.'/Models/Object.php',
            $moduleDir.'/Facades/Objects.php',
            $moduleDir.'/Repositories/EloquentObject.php',
            $moduleDir.'/resources/scss/public/_object.scss',
            $moduleDir.'/resources/scss/public/_object-list.scss',
        ];
        foreach ($paths as $path) {
            $this->files->move($path, $this->transformFilename($path));
        }
    }
public function renameModelsAndRepositories()
    {
        $moduleDir = base_path('Modules/'.$this->module);
        $paths = [
            $moduleDir.'/Models/Object.php',
            $moduleDir.'/Facades/Objects.php',
            $moduleDir.'/Repositories/EloquentObject.php',
            $moduleDir.'/resources/scss/public/_object.scss',
            $moduleDir.'/resources/scss/public/_object-list.scss',
        ];
        foreach ($paths as $path) {
            $this->files->move($path, $this->transformFilename($path));
        }
    }
public function renameModelsAndRepositories ( ) { $ moduleDir = base_path ( 'Modules/' . $ this -> module ) ; $ paths = [ $ moduleDir . '/Models/Object.php' , $ moduleDir . '/Facades/Objects.php' , $ moduleDir . '/Repositories/EloquentObject.php' , $ moduleDir . '/resources/scss/public/_object.scss' , $ moduleDir . '/resources/scss/public/_object-list.scss' , ] ; foreach ( $ paths as $ path ) { $ this -> files -> move ( $ path , $ this -> transformFilename ( $ path ) ) ; } }
Rename models and repositories.
Rename models and repositories .