onix-systems-php/hyperf-app-settings

An extension that consists of settings for an application

v1.2.2 2023-12-05 17:53 UTC

This package is auto-updated.

Last update: 2024-04-05 18:34:43 UTC


README

Includes the following classes:

  • DTO:
    • UpdateAppSettingDTO.
  • Model:
    • AppSetting;
  • Repository:
    • AppSettingsRepository.
  • Service:
    • AppSettingsService.
    • UpdateAppSettingsService.

Install:

composer require onix-systems-php/hyperf-app-settings

Publish config and database migrations:

php bin/hyperf.php vendor:publish onix-systems-php/hyperf-app-settings

Fill app_settings config with fields you want to store in database and validation rules for them, following existing examples.