src/Console/ResetCommand.php
/**
     * Execute the console command.
     *
     * @return void
     */
Execute the console command.
@return void
Execute the console command . @return void
public function handle()
    {
        if (!$this->confirmToProceed()) {
            return;
        }
        $this->seeder->setConnection($this->option('database'));
        if (!$this->seeder->repositoryExists()) {
            $this->comment('Seeds table not found.');
            return;
        }
        $this->seeder->reset($this->getSeedPaths(), $this->option('pretend'));
        foreach ($this->seeder->getNotes() as $note) {
            $this->output->writeln($note);
        }
    }
public function handle ( ) { if ( ! $ this -> confirmToProceed ( ) ) { return ; } $ this -> seeder -> setConnection ( $ this -> option ( 'database' ) ) ; if ( ! $ this -> seeder -> repositoryExists ( ) ) { $ this -> comment ( 'Seeds table not found.' ) ; return ; } $ this -> seeder -> reset ( $ this -> getSeedPaths ( ) , $ this -> option ( 'pretend' ) ) ; foreach ( $ this -> seeder -> getNotes ( ) as $ note ) { $ this -> output -> writeln ( $ note ) ; } }
Execute the console command.
Execute the console command .