infinety-es/config-manager 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

infinety-es/config-manager

最新稳定版本:v1.1.4

Composer 安装命令:

composer require infinety-es/config-manager

包简介

Package to edit and view config files

README 文档

README

Latest Stable Version Total Downloads StyleCI License

With this package you can edit your Laravel config files in an easy way.

Laravel 5 Config Manager

Usage Instructions

Install through composer:

composer require infinety-es/config-manager

Add this to app/config/app.php under the providers key:

Infinety\ConfigManager\ConfigManagerServiceProvider::class,

Publish package files:

php artisan vendor:publish --provider="Infinety\ConfigManager\ConfigManagerServiceProvider"

Create default layout with php artisan make:auth and edit layouts/app.blade.php and add a yield called script after app.js. Your app.blade.php should look like:

    <!-- Scripts -->
    <script src="{{ asset('js/app.js') }}"></script>
    @yield('scripts')
</body>

Edit config/configmanager.php config file to set the route and middleware, default to:

<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Routes group config
    |--------------------------------------------------------------------------
    |
    | The default group settings for the translations routes.
    |
    */
    'route' => [
        'prefix' => 'dashboard/config',
        'middleware' => [
            'web',
            'auth',
            'role:admin',
        ],
    ],
];

And now go to your route. Yo will see all config files in the select. Choose one and the page will refresh with the config keys and values.

Important notice:

Currently this package is not saving no defined arrays. Take a look this example:

<?php

return [
    'route' => [
        'myData' => [ //This array can not be changed in this moment
            'first', 
            'second',
            'third',
        ],
        'myObject' => [ //This array can be changed because has keys
            'demo' => false,
            'test' => true
        ]
        'custom' => true, //This can be changed
        'value' => 'my own value' //This can be changed
    ],
];

I will try to fix shortly. Also if you like it you can make a Pull Request,

License

Mit

Author

Eric Lagarda

Contributing contributions welcome

Hope you like it!

统计信息

  • 总下载量: 2.45k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固