Config extension for open-developer, thanks to z-song

v1.0.4 2023-08-14 13:25 UTC

This package is auto-updated.

Last update: 2024-06-14 15:09:51 UTC


README

Config manager for open-developer

Screenshot

config screenshot

Installation

composer require open-developer-ext/config
php artisan migrate

Open app/Providers/AppServiceProvider.php, and call the Config::load() method within the boot method:

<?php

namespace App\Providers;

use OpenDeveloper\Developer\Config\Config;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    public function boot()
    {
        $table = config('developer.extensions.config.table', 'developer_config');
        if (Schema::hasTable($table)) {
            Config::load();
        }
    }
}

Then run:

php artisan developer:import config

Open http://your-host/developer/config

Usage

After add config in the panel, use config($key) to get value you configured.