diff --git a/src/Facades/Collectors.php b/src/Facades/Collectors.php index ad20636d..15a3df32 100644 --- a/src/Facades/Collectors.php +++ b/src/Facades/Collectors.php @@ -27,7 +27,7 @@ protected static function buildClasses(array $classes): array foreach ($classes as $class) { $getClass = new $class(); if (! $getClass->disabled) { - $allClasses[] = $getClass->toArray(); + $allClasses[str($class)->explode('\\')->last()] = $getClass->toArray(); } }