app/Services/ModuleService.php
public function deletedModules(): Collection
    {
        $database_modules = DB::table('module')->pluck('module_name');

        $disk_modules = $this->all(true)
            ->map(static function (ModuleInterface $module): string {
                return $module->name();
            });

        return $database_modules->diff($disk_modules);
    }
public function deletedModules(): Collection
    {
        $database_modules = DB::table('module')->pluck('module_name');

        $disk_modules = $this->all(true)
            ->map(static function (ModuleInterface $module): string {
                return $module->name();
            });

        return $database_modules->diff($disk_modules);
    }
public function deletedModules ( ) : Collection { $ database_modules = DB :: table ( 'module' ) -> pluck ( 'module_name' ) ; $ disk_modules = $ this -> all ( true ) -> map ( static function ( ModuleInterface $ module ) : string { return $ module -> name ( ) ; } ) ; return $ database_modules -> diff ( $ disk_modules ) ; }
Generate a list of module names which exist in the database but not on disk.

@return Collection
@return string[]
Generate a list of module names which exist in the database but not on disk .