Laralib\L5scaffold\Commands\ScaffoldMakeCommand::fire PHP Méthode

fire() public méthode

Execute the console command.
public fire ( ) : void
Résultat void
    public function fire()
    {
        $header = "scaffolding: {$this->getObjName("Name")}";
        $footer = str_pad('', strlen($header), '-');
        $dump = str_pad('>DUMP AUTOLOAD<', strlen($header), ' ', STR_PAD_BOTH);
        $this->line("\n----------- {$header} -----------\n");
        $this->makeMeta();
        $this->makeMigration();
        $this->makeSeed();
        $this->makeModel();
        $this->makeController();
        // $this->makeLocalization(); //ToDo - implement in future version
        $this->makeViews();
        $this->makeViewLayout();
        $this->line("\n----------- {$footer} -----------");
        $this->comment("----------- {$dump} -----------");
        $this->composer->dumpAutoloads();
        $this->error("Don't forget to adjust: 'migrate' and 'routes'");
    }