public function create($name, $path)
{
$path = $this->getPath($name, $path);
$stub = $this->getStub('migration');
$this->files->put($path, $this->parseStub($stub, ['table' => $this->tableize($name), 'class' => $this->getMigrationClassName($name)]));
return $path;
}
/** * 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}"); }