src/Console/SeedCommand.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->prepareDatabase();
        $this->seeder->run($this->getSeedPaths(), [
            'pretend' => $this->option('pretend'),
            'step' => $this->option('step'),
        ]);
        foreach ($this->seeder->getNotes() as $note) {
            $this->output->writeln($note);
        }
    }
public function handle ( ) { if ( ! $ this -> confirmToProceed ( ) ) { return ; } $ this -> prepareDatabase ( ) ; $ this -> seeder -> run ( $ this -> getSeedPaths ( ) , [ 'pretend' => $ this -> option ( 'pretend' ) , 'step' => $ this -> option ( 'step' ) , ] ) ; foreach ( $ this -> seeder -> getNotes ( ) as $ note ) { $ this -> output -> writeln ( $ note ) ; } }
Execute the console command.
Execute the console command .