src/Seed/Creator/SeedCreator.php
public function create(FilesystemInterface $filesystem, ?string $name = null): void
    {
        $stub = $this->stubs->read('new.php.stub');
        $filename = $this->getName($name).'.php';

        if ($filesystem->has($filename)) {
            $this->notify->note('');
            $this->notify->note("<info>Seed with name</info> {$filename} <info>already exists.</info>");
            return;
        }

        $filesystem->put($filename, $this->populateStub($stub, $name));

        $this->notify->note('');
        $this->notify->note("<comment>Seed</comment> {$filename} <comment>created</comment>");
    }
public function create(FilesystemInterface $filesystem, ?string $name = null): void
    {
        $stub = $this->stubs->read('new.php.stub');
        $filename = $this->getName($name).'.php';

        if ($filesystem->has($filename)) {
            $this->notify->note('');
            $this->notify->note("<info>Seed with name</info> {$filename} <info>already exists.</info>");
            return;
        }

        $filesystem->put($filename, $this->populateStub($stub, $name));

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

@param \League\Flysystem\FilesystemInterface $filesystem
@param string|null $name
@return void
@throws \League\Flysystem\FileNotFoundException