protected function backup($process)
    {
        if ($process) {
            $this->line('');
            //
            $ok = $this->confirm('Wanna make backup for database ? [yes/no]', false);
            //
            if ($ok) {
                if (Database::export()) {
                    $this->info('The database saved');
                } else {
                    $this->error("The database wasn't saved");
                }
            }
        }
    }
protected function backup($process)
    {
        if ($process) {
            $this->line('');
            //
            $ok = $this->confirm('Wanna make backup for database ? [yes/no]', false);
            //
            if ($ok) {
                if (Database::export()) {
                    $this->info('The database saved');
                } else {
                    $this->error("The database wasn't saved");
                }
            }
        }
    }
protected function backup ( $ process ) { if ( $ process ) { $ this -> line ( '' ) ; // $ ok = $ this -> confirm ( 'Wanna make backup for database ? [yes/no]' , false ) ; // if ( $ ok ) { if ( Database :: export ( ) ) { $ this -> info ( 'The database saved' ) ; } else { $ this -> error ( "The database wasn't saved" ) ; } } } }
Make backup for database.
Make backup for database .