maguttiCms-master/app/Console/Commands/Support/Model/CreateModel.php
/**
     * Questo metodo serve a creare il Model dallo stub.
     */
Questo metodo serve a creare il Model dallo stub.
Questo metodo serve a creare il Model dallo stub .
private function writeModel(): void
    {
        $this->modelStub = str_replace('##model##', $this->model, $this->modelStub);
        $fileName = app_path("{$this->model}.php");
        echo "Create Model [{$this->model}]" . PHP_EOL;
        $this->writeFile($fileName, $this->modelStub);
    }
private function writeModel ( ) : void { $ this -> modelStub = str_replace ( '##model##' , $ this -> model , $ this -> modelStub ) ; $ fileName = app_path ( " { $ this -> model } .php " ) ; echo " Create Model [ { $ this -> model } ] " . PHP_EOL ; $ this -> writeFile ( $ fileName , $ this -> modelStub ) ; }
Questo metodo serve a creare il Model dallo stub.
Questo metodo serve a creare il Model dallo stub .