Drop database

Submitted by harlekoy - 1 month 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}`");

Ads cover the costs of maintaining Laravel-tricks

comments powered by Disqus

Ads cover the costs of maintaining Laravel-tricks