src/Seed/Seeder.php
public function seed(?string $name = null): void
    {
        $this->notify->note('');

        $files = $this->all($name);

        if (count($files) < 1) {
            $this->notify->note("<info>Seed files not found.</info>");
            return;
        }

        foreach ($files as [$file, $content]) {
            $this->load($content);
            $this->resolve($file['filename'])->run();

            $this->notify->note("<comment>Seed</comment> {$file['basename']} <comment>executed</comment>");
        }
    }
public function seed(?string $name = null): void
    {
        $this->notify->note('');

        $files = $this->all($name);

        if (count($files) < 1) {
            $this->notify->note("<info>Seed files not found.</info>");
            return;
        }

        foreach ($files as [$file, $content]) {
            $this->load($content);
            $this->resolve($file['filename'])->run();

            $this->notify->note("<comment>Seed</comment> {$file['basename']} <comment>executed</comment>");
        }
    }
public function seed ( ? string $ name = null ) : void { $ this -> notify -> note ( '' ) ; $ files = $ this -> all ( $ name ) ; if ( count ( $ files ) < 1 ) { $ this -> notify -> note ( "<info>Seed files not found.</info>" ) ; return ; } foreach ( $ files as [ $ file , $ content ] ) { $ this -> load ( $ content ) ; $ this -> resolve ( $ file [ 'filename' ] ) -> run ( ) ; $ this -> notify -> note ( "<comment>Seed</comment> {$file['basename']} <comment>executed</comment>" ) ; } }
Start seeds!

@param string|null $name
@throws \Invoker\Exception\InvocationException
@throws \Invoker\Exception\NotCallableException
@throws \Invoker\Exception\NotEnoughParametersException
@throws \League\Flysystem\FileNotFoundException
Start seeds!