diff --git a/composer.json b/composer.json index 7ecb82b..f7f13be 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "illuminate/support": "^7.0|^8.0|^9.0|^10.0" }, "require-dev": { - "orchestra/testbench": "^6.12", + "orchestra/testbench": "^6.12|^7.0|^8.0", "phpunit/phpunit": "^8.0 || ^9.0", "spatie/phpunit-snapshot-assertions": "^4.2" }, diff --git a/src/Console/DumpDatabaseCommand.php b/src/Console/DumpDatabaseCommand.php index cef7377..2ab4b5a 100644 --- a/src/Console/DumpDatabaseCommand.php +++ b/src/Console/DumpDatabaseCommand.php @@ -14,6 +14,7 @@ class DumpDatabaseCommand extends Command public function handle() { $definition = config('masked-dump.' . $this->option('definition')); + $definition = is_callable($definition) ? call_user_func($definition) : $definition; $definition->load(); $this->info('Starting Database dump');