From f3cd80e38d6f4717ec88bd92f2c4e51694e75cd6 Mon Sep 17 00:00:00 2001 From: Mark Gregory Date: Wed, 1 Jul 2026 11:09:08 +0100 Subject: [PATCH] added description --- CHANGELOG.md | 0 LICENSE.md | 0 README.md | 0 composer.json | 0 config/config.php | 0 src/Activators/FileActivator.php | 0 src/Collection.php | 0 src/Commands/CommandMakeCommand.php | 0 src/Commands/ComponentMakeCommand.php | 0 src/Commands/ControllerMakeCommand.php | 0 src/Commands/DisableCommand.php | 0 src/Commands/DumpCommand.php | 0 src/Commands/EnableCommand.php | 0 src/Commands/EventMakeCommand.php | 0 src/Commands/FactoryMakeCommand.php | 0 src/Commands/GeneratorCommand.php | 0 src/Commands/HelperMakeCommand.php | 0 src/Commands/InstallCommand.php | 0 src/Commands/JobMakeCommand.php | 0 src/Commands/ListCommand.php | 0 src/Commands/ListenerMakeCommand.php | 0 src/Commands/MailMakeCommand.php | 0 src/Commands/MiddlewareMakeCommand.php | 0 src/Commands/MigrateCommand.php | 0 src/Commands/MigrateRefreshCommand.php | 0 src/Commands/MigrateResetCommand.php | 0 src/Commands/MigrateRollbackCommand.php | 0 src/Commands/MigrateStatusCommand.php | 0 src/Commands/MigrationMakeCommand.php | 0 src/Commands/ModelMakeCommand.php | 0 src/Commands/ModuleDeleteCommand.php | 0 src/Commands/ModuleMakeCommand.php | 0 src/Commands/NotificationMakeCommand.php | 0 src/Commands/PolicyMakeCommand.php | 0 src/Commands/ProviderMakeCommand.php | 0 src/Commands/PublishCommand.php | 0 src/Commands/PublishConfigurationCommand.php | 0 src/Commands/PublishMigrationCommand.php | 0 src/Commands/PublishTranslationCommand.php | 0 src/Commands/RequestMakeCommand.php | 0 src/Commands/ResourceMakeCommand.php | 0 src/Commands/RouteProviderMakeCommand.php | 0 src/Commands/RuleMakeCommand.php | 0 src/Commands/SeedCommand.php | 0 src/Commands/SeedMakeCommand.php | 0 src/Commands/SetupCommand.php | 0 src/Commands/SupportMakeCommand.php | 0 src/Commands/TestMakeCommand.php | 0 src/Commands/TraitMakeCommand.php | 0 src/Commands/UnUseCommand.php | 0 src/Commands/UpdateCommand.php | 0 src/Commands/UseCommand.php | 0 src/Commands/stubs/Moduleinfo.stub | 0 src/Commands/stubs/assets/js/app.stub | 0 src/Commands/stubs/assets/sass/app.stub | 0 src/Commands/stubs/command.stub | 0 src/Commands/stubs/component/controller.stub | 0 src/Commands/stubs/component/view.stub | 0 src/Commands/stubs/composer.stub | 0 src/Commands/stubs/controller-api.stub | 0 src/Commands/stubs/controller-plain.stub | 0 src/Commands/stubs/controller.stub | 0 src/Commands/stubs/event.stub | 0 src/Commands/stubs/factory.stub | 0 src/Commands/stubs/feature-test.stub | 0 src/Commands/stubs/helper.stub | 0 src/Commands/stubs/job-queued.stub | 0 src/Commands/stubs/job.stub | 0 src/Commands/stubs/json.stub | 0 src/Commands/stubs/listener-duck.stub | 0 src/Commands/stubs/listener-queued-duck.stub | 0 src/Commands/stubs/listener-queued.stub | 0 src/Commands/stubs/listener.stub | 0 src/Commands/stubs/mail.stub | 0 src/Commands/stubs/middleware.stub | 0 src/Commands/stubs/migration/add.stub | 0 src/Commands/stubs/migration/create.stub | 0 src/Commands/stubs/migration/delete.stub | 0 src/Commands/stubs/migration/drop.stub | 0 src/Commands/stubs/migration/plain.stub | 0 src/Commands/stubs/model.stub | 0 src/Commands/stubs/notification.stub | 0 src/Commands/stubs/package.stub | 0 src/Commands/stubs/policy.plain.stub | 0 src/Commands/stubs/provider.stub | 0 src/Commands/stubs/request.stub | 0 src/Commands/stubs/resource-collection.stub | 0 src/Commands/stubs/resource.stub | 0 src/Commands/stubs/route-provider.stub | 0 src/Commands/stubs/routes/api.stub | 0 src/Commands/stubs/routes/web.stub | 0 src/Commands/stubs/rule.stub | 0 src/Commands/stubs/scaffold/config.stub | 0 src/Commands/stubs/scaffold/provider.stub | 0 src/Commands/stubs/seeder.stub | 0 src/Commands/stubs/trait.stub | 0 src/Commands/stubs/unit-test.stub | 0 src/Commands/stubs/views/index.stub | 0 src/Commands/stubs/views/master.stub | 0 src/Commands/stubs/webpack.stub | 0 src/Contracts/ActivatorInterface.php | 0 src/Contracts/PublisherInterface.php | 0 src/Contracts/RepositoryInterface.php | 0 src/Contracts/RunableInterface.php | 0 .../Entities/ModuleStatus.php | 3 + src/Exceptions/FileAlreadyExistException.php | 0 src/Exceptions/InvalidActivatorClass.php | 0 src/Exceptions/InvalidAssetPath.php | 0 src/Exceptions/InvalidJsonException.php | 0 src/Exceptions/ModuleNotFoundException.php | 0 src/Facades/Module.php | 0 src/FileRepository.php | 0 src/Generators/FileGenerator.php | 0 src/Generators/Generator.php | 0 src/Generators/ModuleGenerator.php | 0 .../Controllers/ModuleControlController.php | 15 ++ src/Json.php | 0 src/Laravel/LaravelFileRepository.php | 0 src/Laravel/Module.php | 0 src/LaravelModulesServiceProvider.php | 0 src/Lumen/LumenFileRepository.php | 0 src/Lumen/Module.php | 0 src/LumenModulesServiceProvider.php | 0 src/Migrations/Migrator.php | 0 src/Module.php | 0 src/ModulesServiceProvider.php | 0 src/Process/Installer.php | 0 src/Process/Runner.php | 0 src/Process/Updater.php | 0 src/Providers/BootstrapServiceProvider.php | 0 src/Providers/ConsoleServiceProvider.php | 0 src/Providers/ContractsServiceProvider.php | 0 src/Publishing/AssetPublisher.php | 0 src/Publishing/LangPublisher.php | 0 src/Publishing/MigrationPublisher.php | 0 src/Publishing/Publisher.php | 0 src/Routing/Controller.php | 0 src/Support/Config/GenerateConfigReader.php | 0 src/Support/Config/GeneratorPath.php | 0 src/Support/DatabaseModuleRegistry.php | 93 ++++++---- src/Support/Migrations/NameParser.php | 0 src/Support/Migrations/SchemaParser.php | 0 src/Support/Stub.php | 0 src/Traits/CanClearModulesCache.php | 0 src/Traits/MigrationLoaderTrait.php | 0 src/Traits/ModuleCommandTrait.php | 0 ...01_000000_create_module_statuses_table.php | 2 + ...base_metadata_to_module_statuses_table.php | 44 +++++ src/helpers.php | 0 src/resources/views/index.blade.php | 171 +++++++++++------- src/resources/views/show.blade.php | 133 +++++++++++--- src/routes/web.php | 1 + 152 files changed, 349 insertions(+), 113 deletions(-) mode change 100755 => 100644 CHANGELOG.md mode change 100755 => 100644 LICENSE.md mode change 100755 => 100644 README.md mode change 100755 => 100644 composer.json mode change 100755 => 100644 config/config.php mode change 100755 => 100644 src/Activators/FileActivator.php mode change 100755 => 100644 src/Collection.php mode change 100755 => 100644 src/Commands/CommandMakeCommand.php mode change 100755 => 100644 src/Commands/ComponentMakeCommand.php mode change 100755 => 100644 src/Commands/ControllerMakeCommand.php mode change 100755 => 100644 src/Commands/DisableCommand.php mode change 100755 => 100644 src/Commands/DumpCommand.php mode change 100755 => 100644 src/Commands/EnableCommand.php mode change 100755 => 100644 src/Commands/EventMakeCommand.php mode change 100755 => 100644 src/Commands/FactoryMakeCommand.php mode change 100755 => 100644 src/Commands/GeneratorCommand.php mode change 100755 => 100644 src/Commands/HelperMakeCommand.php mode change 100755 => 100644 src/Commands/InstallCommand.php mode change 100755 => 100644 src/Commands/JobMakeCommand.php mode change 100755 => 100644 src/Commands/ListCommand.php mode change 100755 => 100644 src/Commands/ListenerMakeCommand.php mode change 100755 => 100644 src/Commands/MailMakeCommand.php mode change 100755 => 100644 src/Commands/MiddlewareMakeCommand.php mode change 100755 => 100644 src/Commands/MigrateCommand.php mode change 100755 => 100644 src/Commands/MigrateRefreshCommand.php mode change 100755 => 100644 src/Commands/MigrateResetCommand.php mode change 100755 => 100644 src/Commands/MigrateRollbackCommand.php mode change 100755 => 100644 src/Commands/MigrateStatusCommand.php mode change 100755 => 100644 src/Commands/MigrationMakeCommand.php mode change 100755 => 100644 src/Commands/ModelMakeCommand.php mode change 100755 => 100644 src/Commands/ModuleDeleteCommand.php mode change 100755 => 100644 src/Commands/ModuleMakeCommand.php mode change 100755 => 100644 src/Commands/NotificationMakeCommand.php mode change 100755 => 100644 src/Commands/PolicyMakeCommand.php mode change 100755 => 100644 src/Commands/ProviderMakeCommand.php mode change 100755 => 100644 src/Commands/PublishCommand.php mode change 100755 => 100644 src/Commands/PublishConfigurationCommand.php mode change 100755 => 100644 src/Commands/PublishMigrationCommand.php mode change 100755 => 100644 src/Commands/PublishTranslationCommand.php mode change 100755 => 100644 src/Commands/RequestMakeCommand.php mode change 100755 => 100644 src/Commands/ResourceMakeCommand.php mode change 100755 => 100644 src/Commands/RouteProviderMakeCommand.php mode change 100755 => 100644 src/Commands/RuleMakeCommand.php mode change 100755 => 100644 src/Commands/SeedCommand.php mode change 100755 => 100644 src/Commands/SeedMakeCommand.php mode change 100755 => 100644 src/Commands/SetupCommand.php mode change 100755 => 100644 src/Commands/SupportMakeCommand.php mode change 100755 => 100644 src/Commands/TestMakeCommand.php mode change 100755 => 100644 src/Commands/TraitMakeCommand.php mode change 100755 => 100644 src/Commands/UnUseCommand.php mode change 100755 => 100644 src/Commands/UpdateCommand.php mode change 100755 => 100644 src/Commands/UseCommand.php mode change 100755 => 100644 src/Commands/stubs/Moduleinfo.stub mode change 100755 => 100644 src/Commands/stubs/assets/js/app.stub mode change 100755 => 100644 src/Commands/stubs/assets/sass/app.stub mode change 100755 => 100644 src/Commands/stubs/command.stub mode change 100755 => 100644 src/Commands/stubs/component/controller.stub mode change 100755 => 100644 src/Commands/stubs/component/view.stub mode change 100755 => 100644 src/Commands/stubs/composer.stub mode change 100755 => 100644 src/Commands/stubs/controller-api.stub mode change 100755 => 100644 src/Commands/stubs/controller-plain.stub mode change 100755 => 100644 src/Commands/stubs/controller.stub mode change 100755 => 100644 src/Commands/stubs/event.stub mode change 100755 => 100644 src/Commands/stubs/factory.stub mode change 100755 => 100644 src/Commands/stubs/feature-test.stub mode change 100755 => 100644 src/Commands/stubs/helper.stub mode change 100755 => 100644 src/Commands/stubs/job-queued.stub mode change 100755 => 100644 src/Commands/stubs/job.stub mode change 100755 => 100644 src/Commands/stubs/json.stub mode change 100755 => 100644 src/Commands/stubs/listener-duck.stub mode change 100755 => 100644 src/Commands/stubs/listener-queued-duck.stub mode change 100755 => 100644 src/Commands/stubs/listener-queued.stub mode change 100755 => 100644 src/Commands/stubs/listener.stub mode change 100755 => 100644 src/Commands/stubs/mail.stub mode change 100755 => 100644 src/Commands/stubs/middleware.stub mode change 100755 => 100644 src/Commands/stubs/migration/add.stub mode change 100755 => 100644 src/Commands/stubs/migration/create.stub mode change 100755 => 100644 src/Commands/stubs/migration/delete.stub mode change 100755 => 100644 src/Commands/stubs/migration/drop.stub mode change 100755 => 100644 src/Commands/stubs/migration/plain.stub mode change 100755 => 100644 src/Commands/stubs/model.stub mode change 100755 => 100644 src/Commands/stubs/notification.stub mode change 100755 => 100644 src/Commands/stubs/package.stub mode change 100755 => 100644 src/Commands/stubs/policy.plain.stub mode change 100755 => 100644 src/Commands/stubs/provider.stub mode change 100755 => 100644 src/Commands/stubs/request.stub mode change 100755 => 100644 src/Commands/stubs/resource-collection.stub mode change 100755 => 100644 src/Commands/stubs/resource.stub mode change 100755 => 100644 src/Commands/stubs/route-provider.stub mode change 100755 => 100644 src/Commands/stubs/routes/api.stub mode change 100755 => 100644 src/Commands/stubs/routes/web.stub mode change 100755 => 100644 src/Commands/stubs/rule.stub mode change 100755 => 100644 src/Commands/stubs/scaffold/config.stub mode change 100755 => 100644 src/Commands/stubs/scaffold/provider.stub mode change 100755 => 100644 src/Commands/stubs/seeder.stub mode change 100755 => 100644 src/Commands/stubs/trait.stub mode change 100755 => 100644 src/Commands/stubs/unit-test.stub mode change 100755 => 100644 src/Commands/stubs/views/index.stub mode change 100755 => 100644 src/Commands/stubs/views/master.stub mode change 100755 => 100644 src/Commands/stubs/webpack.stub mode change 100755 => 100644 src/Contracts/ActivatorInterface.php mode change 100755 => 100644 src/Contracts/PublisherInterface.php mode change 100755 => 100644 src/Contracts/RepositoryInterface.php mode change 100755 => 100644 src/Contracts/RunableInterface.php mode change 100755 => 100644 src/Exceptions/FileAlreadyExistException.php mode change 100755 => 100644 src/Exceptions/InvalidActivatorClass.php mode change 100755 => 100644 src/Exceptions/InvalidAssetPath.php mode change 100755 => 100644 src/Exceptions/InvalidJsonException.php mode change 100755 => 100644 src/Exceptions/ModuleNotFoundException.php mode change 100755 => 100644 src/Facades/Module.php mode change 100755 => 100644 src/FileRepository.php mode change 100755 => 100644 src/Generators/FileGenerator.php mode change 100755 => 100644 src/Generators/Generator.php mode change 100755 => 100644 src/Generators/ModuleGenerator.php mode change 100755 => 100644 src/Json.php mode change 100755 => 100644 src/Laravel/LaravelFileRepository.php mode change 100755 => 100644 src/Laravel/Module.php mode change 100755 => 100644 src/LaravelModulesServiceProvider.php mode change 100755 => 100644 src/Lumen/LumenFileRepository.php mode change 100755 => 100644 src/Lumen/Module.php mode change 100755 => 100644 src/LumenModulesServiceProvider.php mode change 100755 => 100644 src/Migrations/Migrator.php mode change 100755 => 100644 src/Module.php mode change 100755 => 100644 src/ModulesServiceProvider.php mode change 100755 => 100644 src/Process/Installer.php mode change 100755 => 100644 src/Process/Runner.php mode change 100755 => 100644 src/Process/Updater.php mode change 100755 => 100644 src/Providers/BootstrapServiceProvider.php mode change 100755 => 100644 src/Providers/ConsoleServiceProvider.php mode change 100755 => 100644 src/Providers/ContractsServiceProvider.php mode change 100755 => 100644 src/Publishing/AssetPublisher.php mode change 100755 => 100644 src/Publishing/LangPublisher.php mode change 100755 => 100644 src/Publishing/MigrationPublisher.php mode change 100755 => 100644 src/Publishing/Publisher.php mode change 100755 => 100644 src/Routing/Controller.php mode change 100755 => 100644 src/Support/Config/GenerateConfigReader.php mode change 100755 => 100644 src/Support/Config/GeneratorPath.php mode change 100755 => 100644 src/Support/Migrations/NameParser.php mode change 100755 => 100644 src/Support/Migrations/SchemaParser.php mode change 100755 => 100644 src/Support/Stub.php mode change 100755 => 100644 src/Traits/CanClearModulesCache.php mode change 100755 => 100644 src/Traits/MigrationLoaderTrait.php mode change 100755 => 100644 src/Traits/ModuleCommandTrait.php create mode 100644 src/database/migrations/2026_07_01_000100_add_database_metadata_to_module_statuses_table.php mode change 100755 => 100644 src/helpers.php diff --git a/CHANGELOG.md b/CHANGELOG.md old mode 100755 new mode 100644 diff --git a/LICENSE.md b/LICENSE.md old mode 100755 new mode 100644 diff --git a/README.md b/README.md old mode 100755 new mode 100644 diff --git a/composer.json b/composer.json old mode 100755 new mode 100644 diff --git a/config/config.php b/config/config.php old mode 100755 new mode 100644 diff --git a/src/Activators/FileActivator.php b/src/Activators/FileActivator.php old mode 100755 new mode 100644 diff --git a/src/Collection.php b/src/Collection.php old mode 100755 new mode 100644 diff --git a/src/Commands/CommandMakeCommand.php b/src/Commands/CommandMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/ComponentMakeCommand.php b/src/Commands/ComponentMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/ControllerMakeCommand.php b/src/Commands/ControllerMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/DisableCommand.php b/src/Commands/DisableCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/DumpCommand.php b/src/Commands/DumpCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/EnableCommand.php b/src/Commands/EnableCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/EventMakeCommand.php b/src/Commands/EventMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/FactoryMakeCommand.php b/src/Commands/FactoryMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/GeneratorCommand.php b/src/Commands/GeneratorCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/HelperMakeCommand.php b/src/Commands/HelperMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/InstallCommand.php b/src/Commands/InstallCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/JobMakeCommand.php b/src/Commands/JobMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/ListCommand.php b/src/Commands/ListCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/ListenerMakeCommand.php b/src/Commands/ListenerMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/MailMakeCommand.php b/src/Commands/MailMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/MiddlewareMakeCommand.php b/src/Commands/MiddlewareMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/MigrateCommand.php b/src/Commands/MigrateCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/MigrateRefreshCommand.php b/src/Commands/MigrateRefreshCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/MigrateResetCommand.php b/src/Commands/MigrateResetCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/MigrateRollbackCommand.php b/src/Commands/MigrateRollbackCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/MigrateStatusCommand.php b/src/Commands/MigrateStatusCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/MigrationMakeCommand.php b/src/Commands/MigrationMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/ModelMakeCommand.php b/src/Commands/ModelMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/ModuleDeleteCommand.php b/src/Commands/ModuleDeleteCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/ModuleMakeCommand.php b/src/Commands/ModuleMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/NotificationMakeCommand.php b/src/Commands/NotificationMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/PolicyMakeCommand.php b/src/Commands/PolicyMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/ProviderMakeCommand.php b/src/Commands/ProviderMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/PublishCommand.php b/src/Commands/PublishCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/PublishConfigurationCommand.php b/src/Commands/PublishConfigurationCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/PublishMigrationCommand.php b/src/Commands/PublishMigrationCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/PublishTranslationCommand.php b/src/Commands/PublishTranslationCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/RequestMakeCommand.php b/src/Commands/RequestMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/ResourceMakeCommand.php b/src/Commands/ResourceMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/RouteProviderMakeCommand.php b/src/Commands/RouteProviderMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/RuleMakeCommand.php b/src/Commands/RuleMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/SeedCommand.php b/src/Commands/SeedCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/SeedMakeCommand.php b/src/Commands/SeedMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/SetupCommand.php b/src/Commands/SetupCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/SupportMakeCommand.php b/src/Commands/SupportMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/TestMakeCommand.php b/src/Commands/TestMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/TraitMakeCommand.php b/src/Commands/TraitMakeCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/UnUseCommand.php b/src/Commands/UnUseCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/UpdateCommand.php b/src/Commands/UpdateCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/UseCommand.php b/src/Commands/UseCommand.php old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/Moduleinfo.stub b/src/Commands/stubs/Moduleinfo.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/assets/js/app.stub b/src/Commands/stubs/assets/js/app.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/assets/sass/app.stub b/src/Commands/stubs/assets/sass/app.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/command.stub b/src/Commands/stubs/command.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/component/controller.stub b/src/Commands/stubs/component/controller.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/component/view.stub b/src/Commands/stubs/component/view.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/composer.stub b/src/Commands/stubs/composer.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/controller-api.stub b/src/Commands/stubs/controller-api.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/controller-plain.stub b/src/Commands/stubs/controller-plain.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/controller.stub b/src/Commands/stubs/controller.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/event.stub b/src/Commands/stubs/event.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/factory.stub b/src/Commands/stubs/factory.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/feature-test.stub b/src/Commands/stubs/feature-test.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/helper.stub b/src/Commands/stubs/helper.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/job-queued.stub b/src/Commands/stubs/job-queued.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/job.stub b/src/Commands/stubs/job.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/json.stub b/src/Commands/stubs/json.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/listener-duck.stub b/src/Commands/stubs/listener-duck.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/listener-queued-duck.stub b/src/Commands/stubs/listener-queued-duck.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/listener-queued.stub b/src/Commands/stubs/listener-queued.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/listener.stub b/src/Commands/stubs/listener.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/mail.stub b/src/Commands/stubs/mail.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/middleware.stub b/src/Commands/stubs/middleware.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/migration/add.stub b/src/Commands/stubs/migration/add.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/migration/create.stub b/src/Commands/stubs/migration/create.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/migration/delete.stub b/src/Commands/stubs/migration/delete.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/migration/drop.stub b/src/Commands/stubs/migration/drop.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/migration/plain.stub b/src/Commands/stubs/migration/plain.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/model.stub b/src/Commands/stubs/model.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/notification.stub b/src/Commands/stubs/notification.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/package.stub b/src/Commands/stubs/package.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/policy.plain.stub b/src/Commands/stubs/policy.plain.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/provider.stub b/src/Commands/stubs/provider.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/request.stub b/src/Commands/stubs/request.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/resource-collection.stub b/src/Commands/stubs/resource-collection.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/resource.stub b/src/Commands/stubs/resource.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/route-provider.stub b/src/Commands/stubs/route-provider.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/routes/api.stub b/src/Commands/stubs/routes/api.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/routes/web.stub b/src/Commands/stubs/routes/web.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/rule.stub b/src/Commands/stubs/rule.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/scaffold/config.stub b/src/Commands/stubs/scaffold/config.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/scaffold/provider.stub b/src/Commands/stubs/scaffold/provider.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/seeder.stub b/src/Commands/stubs/seeder.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/trait.stub b/src/Commands/stubs/trait.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/unit-test.stub b/src/Commands/stubs/unit-test.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/views/index.stub b/src/Commands/stubs/views/index.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/views/master.stub b/src/Commands/stubs/views/master.stub old mode 100755 new mode 100644 diff --git a/src/Commands/stubs/webpack.stub b/src/Commands/stubs/webpack.stub old mode 100755 new mode 100644 diff --git a/src/Contracts/ActivatorInterface.php b/src/Contracts/ActivatorInterface.php old mode 100755 new mode 100644 diff --git a/src/Contracts/PublisherInterface.php b/src/Contracts/PublisherInterface.php old mode 100755 new mode 100644 diff --git a/src/Contracts/RepositoryInterface.php b/src/Contracts/RepositoryInterface.php old mode 100755 new mode 100644 diff --git a/src/Contracts/RunableInterface.php b/src/Contracts/RunableInterface.php old mode 100755 new mode 100644 diff --git a/src/DevelopmentSupport/Entities/ModuleStatus.php b/src/DevelopmentSupport/Entities/ModuleStatus.php index 45d14d0..6de6215 100644 --- a/src/DevelopmentSupport/Entities/ModuleStatus.php +++ b/src/DevelopmentSupport/Entities/ModuleStatus.php @@ -26,6 +26,8 @@ class ModuleStatus extends Model protected $fillable = [ 'module', 'enabled', + 'description', + 'sort_order', ]; /** @@ -35,5 +37,6 @@ class ModuleStatus extends Model */ protected $casts = [ 'enabled' => 'boolean', + 'sort_order' => 'integer', ]; } diff --git a/src/Exceptions/FileAlreadyExistException.php b/src/Exceptions/FileAlreadyExistException.php old mode 100755 new mode 100644 diff --git a/src/Exceptions/InvalidActivatorClass.php b/src/Exceptions/InvalidActivatorClass.php old mode 100755 new mode 100644 diff --git a/src/Exceptions/InvalidAssetPath.php b/src/Exceptions/InvalidAssetPath.php old mode 100755 new mode 100644 diff --git a/src/Exceptions/InvalidJsonException.php b/src/Exceptions/InvalidJsonException.php old mode 100755 new mode 100644 diff --git a/src/Exceptions/ModuleNotFoundException.php b/src/Exceptions/ModuleNotFoundException.php old mode 100755 new mode 100644 diff --git a/src/Facades/Module.php b/src/Facades/Module.php old mode 100755 new mode 100644 diff --git a/src/FileRepository.php b/src/FileRepository.php old mode 100755 new mode 100644 diff --git a/src/Generators/FileGenerator.php b/src/Generators/FileGenerator.php old mode 100755 new mode 100644 diff --git a/src/Generators/Generator.php b/src/Generators/Generator.php old mode 100755 new mode 100644 diff --git a/src/Generators/ModuleGenerator.php b/src/Generators/ModuleGenerator.php old mode 100755 new mode 100644 diff --git a/src/Http/Controllers/ModuleControlController.php b/src/Http/Controllers/ModuleControlController.php index c9cea4c..427717d 100644 --- a/src/Http/Controllers/ModuleControlController.php +++ b/src/Http/Controllers/ModuleControlController.php @@ -3,6 +3,7 @@ namespace mpba\Modules\Http\Controllers; use Illuminate\Http\RedirectResponse; +use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Illuminate\View\View; use mpba\Modules\Support\DatabaseModuleRegistry; @@ -27,6 +28,20 @@ class ModuleControlController extends Controller ]); } + public function update(Request $request, string $module): RedirectResponse + { + $data = $request->validate([ + 'description' => ['nullable', 'string', 'max:2000'], + 'sort_order' => ['nullable', 'integer', 'min:0', 'max:999999'], + ]); + + $this->registry->update($module, $data); + + return redirect() + ->route('modules.control.show', $module) + ->with('status', "{$module} database metadata saved."); + } + public function sync(): RedirectResponse { $this->registry->syncMissingStatuses(); diff --git a/src/Json.php b/src/Json.php old mode 100755 new mode 100644 diff --git a/src/Laravel/LaravelFileRepository.php b/src/Laravel/LaravelFileRepository.php old mode 100755 new mode 100644 diff --git a/src/Laravel/Module.php b/src/Laravel/Module.php old mode 100755 new mode 100644 diff --git a/src/LaravelModulesServiceProvider.php b/src/LaravelModulesServiceProvider.php old mode 100755 new mode 100644 diff --git a/src/Lumen/LumenFileRepository.php b/src/Lumen/LumenFileRepository.php old mode 100755 new mode 100644 diff --git a/src/Lumen/Module.php b/src/Lumen/Module.php old mode 100755 new mode 100644 diff --git a/src/LumenModulesServiceProvider.php b/src/LumenModulesServiceProvider.php old mode 100755 new mode 100644 diff --git a/src/Migrations/Migrator.php b/src/Migrations/Migrator.php old mode 100755 new mode 100644 diff --git a/src/Module.php b/src/Module.php old mode 100755 new mode 100644 diff --git a/src/ModulesServiceProvider.php b/src/ModulesServiceProvider.php old mode 100755 new mode 100644 diff --git a/src/Process/Installer.php b/src/Process/Installer.php old mode 100755 new mode 100644 diff --git a/src/Process/Runner.php b/src/Process/Runner.php old mode 100755 new mode 100644 diff --git a/src/Process/Updater.php b/src/Process/Updater.php old mode 100755 new mode 100644 diff --git a/src/Providers/BootstrapServiceProvider.php b/src/Providers/BootstrapServiceProvider.php old mode 100755 new mode 100644 diff --git a/src/Providers/ConsoleServiceProvider.php b/src/Providers/ConsoleServiceProvider.php old mode 100755 new mode 100644 diff --git a/src/Providers/ContractsServiceProvider.php b/src/Providers/ContractsServiceProvider.php old mode 100755 new mode 100644 diff --git a/src/Publishing/AssetPublisher.php b/src/Publishing/AssetPublisher.php old mode 100755 new mode 100644 diff --git a/src/Publishing/LangPublisher.php b/src/Publishing/LangPublisher.php old mode 100755 new mode 100644 diff --git a/src/Publishing/MigrationPublisher.php b/src/Publishing/MigrationPublisher.php old mode 100755 new mode 100644 diff --git a/src/Publishing/Publisher.php b/src/Publishing/Publisher.php old mode 100755 new mode 100644 diff --git a/src/Routing/Controller.php b/src/Routing/Controller.php old mode 100755 new mode 100644 diff --git a/src/Support/Config/GenerateConfigReader.php b/src/Support/Config/GenerateConfigReader.php old mode 100755 new mode 100644 diff --git a/src/Support/Config/GeneratorPath.php b/src/Support/Config/GeneratorPath.php old mode 100755 new mode 100644 diff --git a/src/Support/DatabaseModuleRegistry.php b/src/Support/DatabaseModuleRegistry.php index 0bcb281..4477cb9 100644 --- a/src/Support/DatabaseModuleRegistry.php +++ b/src/Support/DatabaseModuleRegistry.php @@ -22,23 +22,13 @@ class DatabaseModuleRegistry ->keyBy('module'); return collect($this->modules->all()) - ->sortBy(fn (Module $module) => $module->get('order', 0)) ->map(function (Module $module) use ($statuses): array { - $status = $statuses->get($module->getName()); - - return [ - 'name' => $module->getName(), - 'alias' => $module->getAlias(), - 'description' => $module->getDescription(), - 'version' => $module->get('version'), - 'order' => $module->get('order', 0), - 'path' => $module->getPath(), - 'requires' => $module->getRequires(), - 'enabled' => (bool) ($status?->enabled ?? $module->isEnabled()), - 'status_record' => $status, - 'module' => $module, - ]; + return $this->mapModule($module, $statuses->get($module->getName())); }) + ->sortBy([ + fn (array $module) => $module['sort_order'], + fn (array $module) => $module['name'], + ]) ->values(); } @@ -50,21 +40,29 @@ class DatabaseModuleRegistry $module = $this->modules->findOrFail($name); $status = ModuleStatus::query()->firstOrCreate( ['module' => $module->getName()], - ['enabled' => $module->isEnabled()] + [ + 'enabled' => $module->isEnabled(), + 'sort_order' => (int) $module->get('order', 0), + ] ); - return [ - 'name' => $module->getName(), - 'alias' => $module->getAlias(), - 'description' => $module->getDescription(), - 'version' => $module->get('version'), - 'order' => $module->get('order', 0), - 'path' => $module->getPath(), - 'requires' => $module->getRequires(), - 'enabled' => (bool) $status->enabled, - 'status_record' => $status, - 'module' => $module, - ]; + return $this->mapModule($module, $status); + } + + public function update(string $name, array $data): void + { + $module = $this->modules->findOrFail($name); + + ModuleStatus::query()->updateOrCreate( + ['module' => $module->getName()], + [ + 'enabled' => ModuleStatus::query() + ->where('module', $module->getName()) + ->value('enabled') ?? $module->isEnabled(), + 'description' => $data['description'] ?? null, + 'sort_order' => (int) ($data['sort_order'] ?? 0), + ] + ); } public function enable(string $name): void @@ -73,7 +71,10 @@ class DatabaseModuleRegistry ModuleStatus::query()->updateOrCreate( ['module' => $module->getName()], - ['enabled' => true] + [ + 'enabled' => true, + 'sort_order' => (int) $module->get('order', 0), + ] ); $this->modules->enable($module->getName()); @@ -85,7 +86,10 @@ class DatabaseModuleRegistry ModuleStatus::query()->updateOrCreate( ['module' => $module->getName()], - ['enabled' => false] + [ + 'enabled' => false, + 'sort_order' => (int) $module->get('order', 0), + ] ); $this->modules->disable($module->getName()); @@ -96,8 +100,35 @@ class DatabaseModuleRegistry foreach ($this->modules->all() as $module) { ModuleStatus::query()->firstOrCreate( ['module' => $module->getName()], - ['enabled' => $module->isEnabled()] + [ + 'enabled' => $module->isEnabled(), + 'sort_order' => (int) $module->get('order', 0), + ] ); } } + + protected function mapModule(Module $module, ?ModuleStatus $status): array + { + return [ + 'name' => $module->getName(), + 'alias' => $module->getAlias(), + 'description' => $status?->description, + 'disk_description' => $module->getDescription(), + 'version' => $this->moduleVersion($module), + 'sort_order' => (int) ($status?->sort_order ?? $module->get('order', 0)), + 'path' => $module->getPath(), + 'requires' => $module->getRequires(), + 'enabled' => (bool) ($status?->enabled ?? $module->isEnabled()), + 'status_record' => $status, + 'module' => $module, + ]; + } + + protected function moduleVersion(Module $module): ?string + { + $version = $module->get('version'); + + return is_string($version) && $version !== '' ? $version : null; + } } diff --git a/src/Support/Migrations/NameParser.php b/src/Support/Migrations/NameParser.php old mode 100755 new mode 100644 diff --git a/src/Support/Migrations/SchemaParser.php b/src/Support/Migrations/SchemaParser.php old mode 100755 new mode 100644 diff --git a/src/Support/Stub.php b/src/Support/Stub.php old mode 100755 new mode 100644 diff --git a/src/Traits/CanClearModulesCache.php b/src/Traits/CanClearModulesCache.php old mode 100755 new mode 100644 diff --git a/src/Traits/MigrationLoaderTrait.php b/src/Traits/MigrationLoaderTrait.php old mode 100755 new mode 100644 diff --git a/src/Traits/ModuleCommandTrait.php b/src/Traits/ModuleCommandTrait.php old mode 100755 new mode 100644 diff --git a/src/database/migrations/2026_07_01_000000_create_module_statuses_table.php b/src/database/migrations/2026_07_01_000000_create_module_statuses_table.php index 4afda4e..92c048a 100644 --- a/src/database/migrations/2026_07_01_000000_create_module_statuses_table.php +++ b/src/database/migrations/2026_07_01_000000_create_module_statuses_table.php @@ -21,6 +21,8 @@ return new class extends Migration $table->id(); $table->string('module')->unique(); $table->boolean('enabled')->default(true); + $table->text('description')->nullable(); + $table->unsignedInteger('sort_order')->default(0); $table->timestamps(); }); } diff --git a/src/database/migrations/2026_07_01_000100_add_database_metadata_to_module_statuses_table.php b/src/database/migrations/2026_07_01_000100_add_database_metadata_to_module_statuses_table.php new file mode 100644 index 0000000..ada6d8b --- /dev/null +++ b/src/database/migrations/2026_07_01_000100_add_database_metadata_to_module_statuses_table.php @@ -0,0 +1,44 @@ +text('description')->nullable()->after('enabled'); + } + + if (! Schema::hasColumn('module_statuses', 'sort_order')) { + $table->unsignedInteger('sort_order')->default(0)->after('description'); + } + }); + } + + public function down(): void + { + if (! Schema::hasTable('module_statuses')) { + return; + } + + Schema::table('module_statuses', function (Blueprint $table): void { + if (Schema::hasColumn('module_statuses', 'sort_order')) { + $table->dropColumn('sort_order'); + } + + if (Schema::hasColumn('module_statuses', 'description')) { + $table->dropColumn('description'); + } + }); + } +}; diff --git a/src/helpers.php b/src/helpers.php old mode 100755 new mode 100644 diff --git a/src/resources/views/index.blade.php b/src/resources/views/index.blade.php index b07848e..b8dab6e 100644 --- a/src/resources/views/index.blade.php +++ b/src/resources/views/index.blade.php @@ -2,92 +2,141 @@ + @php + $enabledCount = $modules->where('enabled', true)->count(); + $disabledCount = $modules->count() - $enabledCount; + @endphp +
@if (session('status')) -
+
{{ session('status') }}
@endif -
+
+
+
Installed
+
{{ $modules->count() }}
+
+ +
+
Enabled
+
{{ $enabledCount }}
+
+ +
+
Disabled
+
{{ $disabledCount }}
+
+
+ +

Installed modules

-

Status is read from and written to the database, not modules_statuses.json.

+

+ Enabled state, sort order, and custom descriptions are stored only in the database. +

@csrf -
-
- - - - - - - - - +
+ @forelse ($modules as $module) +
+
+
+
+

+ {{ $module['name'] }} +

-
- @forelse ($modules as $module) - - - - - - + - - - @empty - - - - @endforelse - -
ModuleDatabase RecordStatusActions
-
{{ $module['name'] }}
-
{{ $module['description'] ?: 'No description provided.' }}
-
{{ $module['path'] }}
-
- @if ($module['status_record']) -
ID: {{ $module['status_record']->id }}
-
module: {{ $module['status_record']->module }}
- @else - Missing - @endif -
@if ($module['enabled']) - Enabled + + Enabled + @else - Disabled + + Disabled + @endif - -
- View +

+ {{ $module['description'] ?: 'No database description saved yet.' }} +

- @if ($module['enabled']) -
- @csrf - -
- @else -
- @csrf - -
- @endif -
-
No modules found on disk.
+ @if (! $module['description'] && $module['disk_description']) +

+ Disk description: {{ $module['disk_description'] }} +

+ @endif +
+ +
+
DB ID: {{ $module['status_record']?->id ?? '—' }}
+
Order: {{ $module['sort_order'] }}
+
+
+ +
+
+
Alias
+
{{ $module['alias'] }}
+
+ +
+
Version
+
{{ $module['version'] ?: '—' }}
+
+ +
+
Requires
+
{{ empty($module['requires']) ? 'None' : count($module['requires']) }}
+
+
+ +
+ {{ $module['path'] }} +
+ +
+ + View / Edit + + + @if ($module['enabled']) +
+ @csrf + +
+ @else +
+ @csrf + +
+ @endif +
+ + @empty +
+ No modules found on disk. +
+ @endforelse
diff --git a/src/resources/views/show.blade.php b/src/resources/views/show.blade.php index fd32c4c..5ad1561 100644 --- a/src/resources/views/show.blade.php +++ b/src/resources/views/show.blade.php @@ -6,51 +6,142 @@ />
-
-
+ @if (session('status')) +
+ {{ session('status') }} +
+ @endif + +
+
+

Database metadata

+

+ This description is stored in the module_statuses table only. It does not edit module.json. +

+ +
+ @csrf + @method('PUT') + +
+ + + @error('description') +

{{ $message }}

+ @enderror +
+ +
+ + + @error('sort_order') +

{{ $message }}

+ @enderror +
+ +
+ + + + Back + +
+
+
+ +
+

Activation

+ +
+ @if ($module['enabled']) + Enabled + @else + Disabled + @endif +
+ +
+ @if ($module['enabled']) +
+ @csrf + +
+ @else +
+ @csrf + +
+ @endif +
+
+
+ +
+

Module details

+ +
Module
{{ $module['name'] }}
+
Alias
{{ $module['alias'] }}
+
Version
{{ $module['version'] ?: '—' }}
+
-
Database enabled
-
{{ $module['enabled'] ? 'Yes' : 'No' }}
+
Database record
+
ID {{ $module['status_record']?->id ?? '—' }}
+
Path
-
{{ $module['path'] }}
+
{{ $module['path'] }}
+
Requires
{{ empty($module['requires']) ? 'None' : implode(', ', $module['requires']) }}
+ + @if ($module['disk_description']) +
+
Disk description
+
{{ $module['disk_description'] }}
+
+ @endif
- -
- Back - - @if ($module['enabled']) -
- @csrf - -
- @else -
- @csrf - -
- @endif -
diff --git a/src/routes/web.php b/src/routes/web.php index 7127902..560e4be 100644 --- a/src/routes/web.php +++ b/src/routes/web.php @@ -10,6 +10,7 @@ Route::middleware(config('modules.admin.middleware', ['web', 'auth'])) Route::get('/', [ModuleControlController::class, 'index'])->name('index'); Route::post('/sync', [ModuleControlController::class, 'sync'])->name('sync'); Route::get('/{module}', [ModuleControlController::class, 'show'])->name('show'); + Route::put('/{module}', [ModuleControlController::class, 'update'])->name('update'); Route::post('/{module}/enable', [ModuleControlController::class, 'enable'])->name('enable'); Route::post('/{module}/disable', [ModuleControlController::class, 'disable'])->name('disable'); });