diff --git a/README.md b/README.md index cd3ba44..d614a60 100644 --- a/README.md +++ b/README.md @@ -30,13 +30,15 @@ Open `app/Providers/AppServiceProvider.php`, and call the `Config::load()` metho namespace App\Providers; use Encore\Admin\Config\Config; +use Illuminate\Support\Facades\Schema; use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { public function boot() { - if (class_exists(Config::class)) { + $table = config('admin.extensions.config.table', 'admin_config'); + if (Schema::hasTable($table)) { Config::load(); } }