linnella/config

Config extension for admin

v1.0 2018-06-25 22:14 UTC

This package is not auto-updated.

Last update: 2025-06-08 08:52:58 UTC


README

Installation

$ composer require linnella/config:dev-master

$ php artisan migrate

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

<?php

namespace App\Providers;

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

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

Then run:

$ php artisan admin:import config

Open http://host/admin/config

Usage

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

License

Licensed under The MIT License (MIT).