bfg/admin-configs

Config extension for bfg admin

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 0

Type:bfg-admin-extension

1.0.0 2024-07-17 21:51 UTC

This package is auto-updated.

Last update: 2024-11-17 22:43:05 UTC


README

Laravel Logo

Total Downloads Latest Stable Version License

Install

composer require bfg/admin-configs

Admin install

php artisan admin:extension bfg/admin-configs --install
php artisan migrate

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

<?php

namespace App\Providers;

use Admin\Extend\AdminConfigs\Config;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    public function boot()
    {
        if (Schema::hasTable('admin_config')) {
            Config::load();
        }
    }
}