laravel-admin-extensions / config

Config manager for laravel-admin
http://laravel-admin.org/
MIT License
96 stars 57 forks source link

不支持最新laravel 7的版本 #35

Closed ghost closed 4 years ago

ghost commented 4 years ago

`

Call to a member function connection() on null at C:\sun\x-admin\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Mo del.php:1283 1279| @return \Illuminate\Database\Connection 1280| / 1281| public static function resolveConnection($connection = null) 1282| { > 1283| return static::$resolver->connection($connection); 1284| } 1285| 1286| /* 1287| Get the connection resolver instance. 1 C:\sun\x-admin\vendor\laravel\framework\src\Illuminate\Database\Eloquent\M odel.php:1249 Illuminate\Database\Eloquent\Model::resolveConnection("mysql") 2 C:\sun\x-admin\vendor\laravel\framework\src\Illuminate\Database\Eloquent\M odel.php:1079 Illuminate\Database\Eloquent\Model::getConnection()

`

ghost commented 4 years ago

php artisan admin:import config

ghost commented 4 years ago

不要用Config::load() 就可以了。