map to string

This commit is contained in:
Barry vd. Heuvel
2024-12-29 19:31:39 +01:00
parent b4a605a491
commit d5323b80d8
+6 -4
View File
@@ -189,10 +189,12 @@ class MetaCommand extends Command
protected function getExpectedArgumentSets()
{
return [
'configs' => $this->loadTemplate('configs')->pluck('name')->filter(),
'routes' => $this->loadTemplate('routes')->pluck('name')->filter(),
'views' => $this->loadTemplate('views')->pluck('key')->filter(),
'translations' => $this->loadTemplate('translations')->filter()->keys(),
'configs' => $this->loadTemplate('configs')->pluck('name')->filter()->toArray(),
'routes' => $this->loadTemplate('routes')->pluck('name')->filter()->toArray(),
'views' => $this->loadTemplate('views')->pluck('key')->filter()->map(function($value) {
return (string) $value;
})->toArray(),
'translations' => $this->loadTemplate('translations')->filter()->keys()->toArray(),
];
}