Skip to content

Commit 216f789

Browse files
committed
feat: allow callable as definition for config caching
1 parent 3b42f68 commit 216f789

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Console/DumpDatabaseCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class DumpDatabaseCommand extends Command
1414
public function handle()
1515
{
1616
$definition = config('masked-dump.' . $this->option('definition'));
17+
$definition = is_callable($definition) ? call_user_func($definition) : $definition;
1718
$definition->load();
1819

1920
$this->info('Starting Database dump');

0 commit comments

Comments
 (0)