Configuration management

This tool will store the configuration data in the database



$ composer require open-admin-ext/config

$ php artisan migrate

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


namespace App\Providers;

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

class AppServiceProvider extends ServiceProvider
    public function boot()
        Config::load();  // Add this

Then run the command to import menus and permissions (which can also be added manually)

$ php artisan admin:import config

Open http://localhost/admin/config.


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