/** * Start make migration. * * @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'); }