src/Console/SeedCommand.php
/**
     * Prepare the seed database for running.
     *
     * @return void
     */
Prepare the seed database for running.
@return void
Prepare the seed database for running . @return void
protected function prepareDatabase()
    {
        $this->seeder->setConnection($this->option('database'));
        if (!$this->seeder->repositoryExists()) {
            $this->call('seed:install', ['--database' => $this->option('database')]);
        }
    }
protected function prepareDatabase ( ) { $ this -> seeder -> setConnection ( $ this -> option ( 'database' ) ) ; if ( ! $ this -> seeder -> repositoryExists ( ) ) { $ this -> call ( 'seed:install' , [ '--database' => $ this -> option ( 'database' ) ] ) ; } }
Prepare the seed database for running.
Prepare the seed database for running .