/**
  * Fetch the template data
  *
  * @return array
  */
 protected function getTemplateData()
 {
     $migrationName = $this->argument('migrationName');
     // This will tell us the table name and action that we'll be performing
     $migrationData = $this->migrationNameParser->parse($migrationName);
     // We also need to parse the migration fields, if provided
     $fields = $this->migrationFieldsParser->parse($this->option('fields'));
     return ['CLASS' => ucwords(camel_case($migrationName)), 'UP' => $this->schemaCreator->up($migrationData, $fields), 'DOWN' => $this->schemaCreator->down($migrationData, $fields)];
 }
 /**
  * Parse the migration name.
  *
  * @return array
  */
 private function getParsedMigrationName()
 {
     $nameParser = new MigrationNameParser();
     return $nameParser->parse($this->migrationName);
 }