📜  laravel db drop table - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:46.646000             🧑  作者: Mango

代码示例5
foreach(\DB::select('SHOW TABLES') as $table) {
    $all_table_names = get_object_vars($table);
    \Schema::drop($all_table_names[key($all_table_names)]);
}