modelNames['table_name']; $migrationPath = $this->makeDirectory(database_path('migrations')); $migrationFilePath = $migrationPath.'/'.$prefix."_create_{$tableName}_table.php"; $this->generateFile($migrationFilePath, $this->getContent('database/migrations/migration-create')); $this->command->info($this->modelNames['model_name'].' table migration generated.'); } /** * {@inheritDoc} */ public function getContent(string $stubName) { $content = $this->replaceStubString($this->getStubFileContent($stubName)); if ($this->command->option('uuid')) { $content = str_replace("\$table->bigIncrements('id')", "\$table->uuid('id')", $content); } return $content; } }