original_string: public function createMigration($config, $section, $table, $splitTable, $command)
      {
          try {
              if (!empty($section)) {
                  $migrationName = 'create_'.str_plural(strtolower(implode('_', $splitTable))).'_table';
                  $tableName = str_plural(strtolower(implode('_', $splitTable)));
              } else {
                  $migrationName = 'create_'.str_plural(strtolower(snake_case($table))).'_table';
                  $tableName = str_plural(strtolower(snake_case($table)));
              }
  
              $command->callSilent('make:migration', [
                  'name' => $migrationName,
                  '--table' => $tableName,
                  '--create' => true,
                  '--path' => $this->getMigrationsPath($config, true),
              ]);
  
              return true;
          } catch (Exception $e) {
              throw new Exception('Could not create the migration: '.$e->getMessage(), 1);
          }
      }
code: public function createMigration($config, $section, $table, $splitTable, $command)
      {
          try {
              if (!empty($section)) {
                  $migrationName = 'create_'.str_plural(strtolower(implode('_', $splitTable))).'_table';
                  $tableName = str_plural(strtolower(implode('_', $splitTable)));
              } else {
                  $migrationName = 'create_'.str_plural(strtolower(snake_case($table))).'_table';
                  $tableName = str_plural(strtolower(snake_case($table)));
              }
  
              $command->callSilent('make:migration', [
                  'name' => $migrationName,
                  '--table' => $tableName,
                  '--create' => true,
                  '--path' => $this->getMigrationsPath($config, true),
              ]);
  
              return true;
          } catch (Exception $e) {
              throw new Exception('Could not create the migration: '.$e->getMessage(), 1);
          }
      }
code_tokens: public function createMigration ( $ config , $ section , $ table , $ splitTable , $ command ) { try { if ( ! empty ( $ section ) ) { $ migrationName = 'create_' . str_plural ( strtolower ( implode ( '_' , $ splitTable ) ) ) . '_table' ; $ tableName = str_plural ( strtolower ( implode ( '_' , $ splitTable ) ) ) ; } else { $ migrationName = 'create_' . str_plural ( strtolower ( snake_case ( $ table ) ) ) . '_table' ; $ tableName = str_plural ( strtolower ( snake_case ( $ table ) ) ) ; } $ command -> callSilent ( 'make:migration' , [ 'name' => $ migrationName , '--table' => $ tableName , '--create' => true , '--path' => $ this -> getMigrationsPath ( $ config , true ) , ] ) ; return true ; } catch ( Exception $ e ) { throw new Exception ( 'Could not create the migration: ' . $ e -> getMessage ( ) , 1 ) ; } }
docstring: Create the migrations.
  
  @param array                            $config
  @param string                           $section
  @param string                           $table
  @param array                            $splitTable
  @param \Grafite\CrudMaker\Console\CrudMaker $command
  
  @return bool
docstring_tokens: Create the migrations .