Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel db drop table

foreach(DB::select('SHOW TABLES') as $table) {
    $all_table_names = get_object_vars($table);
    Schema::drop($all_table_names[key($all_table_names)]);
}
Source by www.pakainfo.com #
 
PREVIOUS NEXT
Tagged: #laravel #db #drop #table
ADD COMMENT
Topic
Name
4+4 =