laravel-admin 的配置扩展

v1.0.2 2018-10-24 15:57 UTC

This package is auto-updated.

Last update: 2024-09-29 05:28:00 UTC


README

StyleCI Packagist Total Downloads Pull request welcome

https://github.com/laravel-backpack/settings启发。

英文文档 | 中文文档

屏幕截图

wx20170810-100226

安装

$ composer require user771908231-ext/config

$ php artisan migrate

打开app/Providers/AppServiceProvider.php,并在boot方法中调用Config::load()方法

<?php

namespace App\Providers;

use Encore\Admin\Config\Config;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    public function boot()
    {
        Config::load();
    }
}

然后执行

$ php artisan admin:import config

打开http://your-host/admin/config

用法

在面板中添加配置后,使用config($key)获取您配置的值。

许可

许可协议为MIT许可协议 (MIT)