abyssgoing/dcat-extension-config

用于配置系统中各种的动态变量

dev-main 2023-11-30 02:03 UTC

This package is auto-updated.

Last update: 2024-04-30 00:40:11 UTC


README

Requirement

  • PHP >= 7.1
  • laravel >= 7.0
  • dcat-admin >= 2.0

Installation

Composer installation

composer require abyssgoing/dcat-extension-config

Enable the extension under Backend -> Helpers -> Extensions

View

image-20220606153442146

image-20220605023851837

Use

Open the file app/Providers/AppServiceProvider.php to load variable configuration.

use Ll\DcatConfig\LlConfig;

public function boot()
{
    if (Schema::hasTable('ll_configs')) {
        LlConfig::load();
    }
}