src/Migration/Creator/MigrationCreator.php
public function create(FilesystemInterface $filesystem, string $name, ?string $table = null, bool $create = false): void
    {
        foreach ($this->getStubs($table, $create) as $type => $stub) {
            $filesystem->put(
                $filename = $this->getFilename($name, $type),
                $this->populateStub($filename, $stub, $table)
            );

            $this->notify->note("<comment>Migration</comment> {$filename} <comment>created</comment>");
        }
    }
public function create(FilesystemInterface $filesystem, string $name, ?string $table = null, bool $create = false): void
    {
        foreach ($this->getStubs($table, $create) as $type => $stub) {
            $filesystem->put(
                $filename = $this->getFilename($name, $type),
                $this->populateStub($filename, $stub, $table)
            );

            $this->notify->note("<comment>Migration</comment> {$filename} <comment>created</comment>");
        }
    }
Create a new migration.

@param \League\Flysystem\FilesystemInterface $filesystem
@param string $name
@param string $table
@param bool $create
@return void
@throws \League\Flysystem\FileNotFoundException