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
Requires
- php: ^8.0|^8.1
- bfg/admin: ^5.5.2|^6.0
This package is auto-updated.
Last update: 2024-11-17 22:43:05 UTC
README
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(); } } }