Explorar o código

fix #1593 导致的 namespace 错误

Edwin Xu %!s(int64=3) %!d(string=hai) anos
pai
achega
22a31df3cb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Http/Controllers/ScaffoldController.php

+ 1 - 1
src/Http/Controllers/ScaffoldController.php

@@ -78,7 +78,7 @@ class ScaffoldController extends Controller
         $dbTypes = static::$dbTypes;
         $dataTypeMap = static::$dataTypeMap;
         $action = URL::current();
-        $app = ucfirst(mb_substr(request()->path(), 0, mb_stripos(request()->path(), '/')));
+        $app = ltrim(config('admin.directory'), app_path().DIRECTORY_SEPARATOR);
         $tables = collect($this->getDatabaseColumns())->map(function ($v) {
             return array_keys($v);
         })->toArray();