Skip to content

onix-systems-php/hyperf-app-settings

Folders and files

NameName
Last commit message
Last commit date
Dec 5, 2023
Jul 12, 2024
Dec 5, 2023
Dec 15, 2022
Dec 15, 2022
Dec 14, 2022
Dec 5, 2023
Dec 14, 2022
Dec 14, 2022
Dec 15, 2022
Dec 5, 2023
Dec 14, 2022

Repository files navigation

Hyperf-app-settings component

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.