create() public method

Create a new migration at the given path.
public create ( string $name, string $path ) : string
$name string
$path string
return string
Example #1
0
 /**
  * Write the migration file to disk.
  *
  * @param  string  $name
  * @return string
  */
 protected function writeMigration($name)
 {
     $output = pathinfo($this->migrator->create($name, $this->getMigrationsPath()), PATHINFO_FILENAME);
     $this->line("      <fg=green;options=bold>create</fg=green;options=bold>  {$output}");
 }