PHP code example of bfg / admin-configs

1. Go to this page and download the library: Download bfg/admin-configs library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bfg / admin-configs example snippets




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();
        }
    }
}

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

php artisan migrate