Created
May 26, 2018 09:43
-
-
Save osbre/a23f204b5d6c8f4f66d7b61a8b7ef605 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//run command: | |
//php artisna tinker | |
//paste code and press enter | |
foreach(\DB::select('SHOW TABLES') as $table) { | |
$table_array = get_object_vars($table); | |
\Schema::drop($table_array[key($table_array)]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
STOP!!! Please, use this:
php artisan migrate:fresh
(this drop and create tables)