Skip to content
Snippets Groups Projects

feat: add database configuration management

  1. Feb 23, 2025
    • Sofiane Lasri's avatar
      feat: remove ExampleTest.php file · d4089730
      Sofiane Lasri authored
      This commit deletes the ExampleTest.php file from the tests/Feature directory, which contained a basic test for the application.
      Verified
      d4089730
    • Sofiane Lasri's avatar
      feat: add maintenance mode alert to admin home page · 095477b8
      Sofiane Lasri authored
      - Commented out the 'private_mode' configuration in app.php
      - Added an alert in the admin home view to notify users when maintenance mode is active, guiding them to the settings page to disable it.
      Verified
      095477b8
    • Sofiane Lasri's avatar
      feat: update website name retrieval and configuration handling · 8701a5f6
      Sofiane Lasri authored
      - Changed the retrieval of the website name in the sidebar component to use the `DbConfig` model for dynamic configuration.
      - Updated the `set` method in the `DbConfig` model to allow null values for configuration.
      - Refactored the public layout to use the website name from `DbConfig` instead of a hardcoded value.
      - Adjusted the default value for maintenance mode and website name in the settings view to match the new configuration method.
      - Modified the middleware to check the maintenance mode from the `DbConfig` model.
      - Updated the `SettingsController` to use `has` instead of `filled` for checking request inputs related to maintenance mode and website name.
      Verified
      8701a5f6
    • Sofiane Lasri's avatar
      feat: add database configuration management · 557e8161
      Sofiane Lasri authored
      - Introduced `DbConfig` model for handling dynamic configuration values.
      - Created migration for `db_configs` table.
      - Added `DbConfigFactory` for generating test data.
      - Implemented website configuration management views.
      - Updated `SettingsController` to manage website settings including maintenance mode and website name.
      - Enhanced error and success messaging in views.
      Verified
      557e8161
Loading