Drop database

Submitted by harlekoy - 7 years ago

This is how you delete/drop a database using Laravel. If you are not using MySQL you may replace or remove the backtick (`) sign.

Schema::getConnection()->getDoctrineSchemaManager()->dropDatabase("`{$databaseName}`");