app/Services/ModuleService.php
private function coreModules(): Collection
    {
        return Collection::make(self::CORE_MODULES)
            ->map(static function (string $class, string $name): ModuleInterface {
                $module = app($class);

                $module->setName($name);

                return $module;
            });
    }
private function coreModules(): Collection
    {
        return Collection::make(self::CORE_MODULES)
            ->map(static function (string $class, string $name): ModuleInterface {
                $module = app($class);

                $module->setName($name);

                return $module;
            });
    }
private function coreModules ( ) : Collection { return Collection :: make ( self :: CORE_MODULES ) -> map ( static function ( string $ class , string $ name ) : ModuleInterface { $ module = app ( $ class ) ; $ module -> setName ( $ name ) ; return $ module ; } ) ; }
All core modules in the system.

@return Collection
All core modules in the system .