private function dropDatabaseTables()
{
\DB::statement('SET FOREIGN_KEY_CHECKS=0');
// gets all tables names in current database
$tables = $this->Schema()->getConnection()->getDoctrineSchemaManager()->listTableNames();
// loop tables and drop any not in $excludeTables array
foreach ($tables as $table) {
if (in_array($table, $this->excludeTables)) {
continue;
}
$this->Schema()->drop($table);
}
}