From bfe519892c5949680383f231648a242d4b790b7b Mon Sep 17 00:00:00 2001 From: wuzhihui819 Date: Fri, 19 Apr 2019 11:32:24 +0800 Subject: [PATCH] =?UTF-8?q?[FIX]=E4=BF=AE=E5=A4=8D=E6=95=99=E7=A8=8B?= =?UTF-8?q?=E4=B8=8D=E9=80=82=E7=94=A8=E4=BA=8E=E9=83=A8=E7=BD=B2=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=9A=E9=83=A8=E7=BD=B2=E6=97=B6config?= =?UTF-8?q?=E8=A1=A8=E5=B9=B6=E4=B8=8D=E5=AD=98=E5=9C=A8=EF=BC=8C=E8=80=8C?= =?UTF-8?q?Config::load()=E4=BC=9A=E6=89=A7=E8=A1=8C=E8=A1=A8=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=EF=BC=8C=E5=AF=BC=E8=87=B4=E9=94=99=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } }