Browse Source

fix #1593 导致的 namespace 错误

Edwin Xu 3 năm trước cách đây
mục cha
commit
22a31df3cb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();