src/Module.php
protected function seed()
    {
        $seederFilePath = $this->getAttribute('path').'/database/seeds/DatabaseSeeder.php';

        if ($this->container['files']->exists($seederFilePath)) {
            require_once $seederFilePath;

            $namespace = $this->getAttribute('namespace').'Database\\Seeds\\DatabaseSeeder';
            $class = '\\'.ltrim($namespace, '\\');
            $seeder = new $class();

            $seeder->run();
        }
    }
protected function seed()
    {
        $seederFilePath = $this->getAttribute('path').'/database/seeds/DatabaseSeeder.php';

        if ($this->container['files']->exists($seederFilePath)) {
            require_once $seederFilePath;

            $namespace = $this->getAttribute('namespace').'Database\\Seeds\\DatabaseSeeder';
            $class = '\\'.ltrim($namespace, '\\');
            $seeder = new $class();

            $seeder->run();
        }
    }
protected function seed ( ) { $ seederFilePath = $ this -> getAttribute ( 'path' ) . '/database/seeds/DatabaseSeeder.php' ; if ( $ this -> container [ 'files' ] -> exists ( $ seederFilePath ) ) { require_once $ seederFilePath ; $ namespace = $ this -> getAttribute ( 'namespace' ) . 'Database\\Seeds\\DatabaseSeeder' ; $ class = '\\' . ltrim ( $ namespace , '\\' ) ; $ seeder = new $ class ( ) ; $ seeder -> run ( ) ; } }
Seed the database with module seeders.

@return void
Seed the database with module seeders .