public function handle()
    {
        // Let's bootstrap first
        new TripalTestBootstrap(false);

        $this->loadDatabaseSeeders();

        $seeder = $this->getArgument('name');

        if ($seeder) {
            $this->runSeeder($seeder);
            $this->success($seeder);

            return;
        }

        if (empty($this->seeders)) {
            $this->error('No database seeders found!');

            return;
        }

        foreach ($this->seeders as $seeder) {
            $this->runSeeder($seeder);
            $this->success($seeder);
        }
    }
public function handle()
    {
        // Let's bootstrap first
        new TripalTestBootstrap(false);

        $this->loadDatabaseSeeders();

        $seeder = $this->getArgument('name');

        if ($seeder) {
            $this->runSeeder($seeder);
            $this->success($seeder);

            return;
        }

        if (empty($this->seeders)) {
            $this->error('No database seeders found!');

            return;
        }

        foreach ($this->seeders as $seeder) {
            $this->runSeeder($seeder);
            $this->success($seeder);
        }
    }
public function handle ( ) { // Let's bootstrap first new TripalTestBootstrap ( false ) ; $ this -> loadDatabaseSeeders ( ) ; $ seeder = $ this -> getArgument ( 'name' ) ; if ( $ seeder ) { $ this -> runSeeder ( $ seeder ) ; $ this -> success ( $ seeder ) ; return ; } if ( empty ( $ this -> seeders ) ) { $ this -> error ( 'No database seeders found!' ) ; return ; } foreach ( $ this -> seeders as $ seeder ) { $ this -> runSeeder ( $ seeder ) ; $ this -> success ( $ seeder ) ; } }
Seed the database.

@throws \Exception
Seed the database .