protected function dumpData($outputPath)
    {
        $tables = Arr::get($this->installConfig, 'dataTables', []);

        /**
         *  Do not attempt to create an empty data install file if no tables are to be exported.
         *  Otherwise all tables will be exported.
         */
        if (! count($tables)) {
            return;
        }

        $command = sprintf(
            'mysqldump %s %s -u %s -p%s --no-create-info > %s',
            escapeshellarg($this->dbConfig['database']),
            implode(' ', $tables),
            escapeshellarg($this->dbConfig['username']),
            escapeshellarg($this->dbConfig['password']),
            escapeshellarg($outputPath.'/'.self::DATA_FILE)
        );

        return shell_exec($command);
    }
protected function dumpData($outputPath)
    {
        $tables = Arr::get($this->installConfig, 'dataTables', []);

        /**
         *  Do not attempt to create an empty data install file if no tables are to be exported.
         *  Otherwise all tables will be exported.
         */
        if (! count($tables)) {
            return;
        }

        $command = sprintf(
            'mysqldump %s %s -u %s -p%s --no-create-info > %s',
            escapeshellarg($this->dbConfig['database']),
            implode(' ', $tables),
            escapeshellarg($this->dbConfig['username']),
            escapeshellarg($this->dbConfig['password']),
            escapeshellarg($outputPath.'/'.self::DATA_FILE)
        );

        return shell_exec($command);
    }
protected function dumpData ( $ outputPath ) { $ tables = Arr :: get ( $ this -> installConfig , 'dataTables' , [ ] ) ; /**
         *  Do not attempt to create an empty data install file if no tables are to be exported.
         *  Otherwise all tables will be exported.
         */ if ( ! count ( $ tables ) ) { return ; } $ command = sprintf ( 'mysqldump %s %s -u %s -p%s --no-create-info > %s' , escapeshellarg ( $ this -> dbConfig [ 'database' ] ) , implode ( ' ' , $ tables ) , escapeshellarg ( $ this -> dbConfig [ 'username' ] ) , escapeshellarg ( $ this -> dbConfig [ 'password' ] ) , escapeshellarg ( $ outputPath . '/' . self :: DATA_FILE ) ) ; return shell_exec ( $ command ) ; }
Export database data to dbData install file

@param  string $outputPath Path where file should be exported
Export database data to dbData install file