Skip to content

Commit 183b797

Browse files
authored
Merge pull request #23 from wuzhihui819/master
[FIX]修复教程不适用于部署的问题
2 parents c24d507 + bfe5198 commit 183b797

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ Open `app/Providers/AppServiceProvider.php`, and call the `Config::load()` metho
3030
namespace App\Providers;
3131

3232
use Encore\Admin\Config\Config;
33+
use Illuminate\Support\Facades\Schema;
3334
use Illuminate\Support\ServiceProvider;
3435

3536
class AppServiceProvider extends ServiceProvider
3637
{
3738
public function boot()
3839
{
39-
if (class_exists(Config::class)) {
40+
$table = config('admin.extensions.config.table', 'admin_config');
41+
if (Schema::hasTable($table)) {
4042
Config::load();
4143
}
4244
}

0 commit comments

Comments
 (0)