Laralib\L5scaffold\Makes\MakeMigration::start PHP Method

start() protected method

Start make migration.
protected start ( ) : void
return void
    protected function start()
    {
        $name = 'create_' . str_plural(strtolower($this->scaffoldCommandObj->argument('name'))) . '_table';
        if ($this->files->exists($path = $this->getPath($name))) {
            return $this->scaffoldCommandObj->error($this->type . ' already exists!');
        }
        $this->makeDirectory($path);
        $this->files->put($path, $this->compileMigrationStub());
        $this->scaffoldCommandObj->info('+ Migration');
    }