Skip to content

Instantly share code, notes, and snippets.

@osbre
Created May 26, 2018 09:43
Show Gist options
  • Save osbre/a23f204b5d6c8f4f66d7b61a8b7ef605 to your computer and use it in GitHub Desktop.
Save osbre/a23f204b5d6c8f4f66d7b61a8b7ef605 to your computer and use it in GitHub Desktop.
//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)]);
}
@osbre
Copy link
Author

osbre commented Jul 21, 2018

STOP!!! Please, use this:

php artisan migrate:fresh

(this drop and create tables)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment