app/Console/Commands/Support/Model/CreateModel.php
/**
     * Questo metodo serve a creare il Model per i translatable.
     */
Questo metodo serve a creare il Model per i translatable.
Questo metodo serve a creare il Model per i translatable .
private function writeTranslationModel(): void
    {
        echo "Create translatable Model [{$this->model}Translation]" . PHP_EOL;
        $translationModel = str_replace('##model##', $this->model, file_get_contents(__DIR__ . '/stubs/translation_model.stub'));
        $this->writeFile(app_path("{$this->model}Translation.php"), $translationModel);
    }
private function writeTranslationModel ( ) : void { echo " Create translatable Model [ { $ this -> model } Translation] " . PHP_EOL ; $ translationModel = str_replace ( '##model##' , $ this -> model , file_get_contents ( __DIR__ . '/stubs/translation_model.stub' ) ) ; $ this -> writeFile ( app_path ( " { $ this -> model } Translation.php " ) , $ translationModel ) ; }
Questo metodo serve a creare il Model per i translatable.
Questo metodo serve a creare il Model per i translatable .
// Richiedi conferma e crea Model.