src/Console/FreshCommand.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->truncateAllTables($database = $this->input->getOption('database'));
        $this->info('Truncated all tables successfully.');
        $this->call('seed', [
            '--database' => $database,
            '--path' => $this->input->getOption('path'),
            '--force' => true,
        ]);
    }
public function handle ( ) { if ( ! $ this -> confirmToProceed ( ) ) { return ; } $ this -> truncateAllTables ( $ database = $ this -> input -> getOption ( 'database' ) ) ; $ this -> info ( 'Truncated all tables successfully.' ) ; $ this -> call ( 'seed' , [ '--database' => $ database , '--path' => $ this -> input -> getOption ( 'path' ) , '--force' => true , ] ) ; }
Execute the console command.
Execute the console command .