src/Console/RefreshCommand.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;
        }
        $database = $this->input->getOption('database');
        $path = $this->input->getOption('path');
        $force = $this->input->getOption('force');
        $step = $this->input->getOption('step') ?: 0;
        if ($step > 0) {
            $this->runRollback($database, $path, $step, $force);
        } else {
            $this->runReset($database, $path, $force);
        }
        $this->call('seed', ['--database' => $database, '--path' => $path, '--force' => $force]);
    }
public function handle ( ) { if ( ! $ this -> confirmToProceed ( ) ) { return ; } $ database = $ this -> input -> getOption ( 'database' ) ; $ path = $ this -> input -> getOption ( 'path' ) ; $ force = $ this -> input -> getOption ( 'force' ) ; $ step = $ this -> input -> getOption ( 'step' ) ? : 0 ; if ( $ step > 0 ) { $ this -> runRollback ( $ database , $ path , $ step , $ force ) ; } else { $ this -> runReset ( $ database , $ path , $ force ) ; } $ this -> call ( 'seed' , [ '--database' => $ database , '--path' => $ path , '--force' => $ force ] ) ; }
Execute the console command.
Execute the console command .