src/Database/MigrationCreator.php
public function create($name, $extension = null, $table = null, $create = false)
    {
        $migrationPath = $this->getMigrationPath($extension);

        $path = $this->getPath($name, $migrationPath);

        $stub = $this->getStub($table, $create);

        $this->files->put($path, $this->populateStub($stub, $table));

        return $path;
    }
public function create($name, $extension = null, $table = null, $create = false)
    {
        $migrationPath = $this->getMigrationPath($extension);

        $path = $this->getPath($name, $migrationPath);

        $stub = $this->getStub($table, $create);

        $this->files->put($path, $this->populateStub($stub, $table));

        return $path;
    }
public function create ( $ name , $ extension = null , $ table = null , $ create = false ) { $ migrationPath = $ this -> getMigrationPath ( $ extension ) ; $ path = $ this -> getPath ( $ name , $ migrationPath ) ; $ stub = $ this -> getStub ( $ table , $ create ) ; $ this -> files -> put ( $ path , $ this -> populateStub ( $ stub , $ table ) ) ; return $ path ; }
Create a new migration for the given extension.

@param string $name
@param Extension $extension
@param string $table
@param bool $create
@return string
Create a new migration for the given extension .