体验了一下。创建表格报错
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start at plugin/admin/app/controller/database/TableController.php line 87 and reproduce the table-creation request using the reported Windows PHP 7.4.15 environment. Inspect the connection involved in the MySqlConnection::schema() error and verify the table can be created successfully without that exception.
Written by the indexing model from the issue text.
Description
windows
PS D:\code\toys\webman-admin> php -v
PHP 7.4.15 (cli) (built: Feb 2 2021 20:47:36) ( NTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
{
"code": 500,
"message": "Call to undefined method Illuminate\\Database\\MySqlConnection::schema()",
"type": "failed",
"traces": "Error: Call to undefined method Illuminate\\Database\\MySqlConnection::schema() in D:\\code\\toys\\webman-admin\\plugin\\admin\\app\\controller\\database\\TableController.php:87\nStack trace:\n#0 D:\\code\\toys\\webman-admin\\vendor\\workerman\\webman-framework\\src\\App.php(276): plugin\\admin\\app\\controller\\database\\TableController->create(Object(support\\Request))\n#1 D:\\code\\toys\\webman-admin\\plugin\\admin\\app\\middleware\\AccessControl.php(21): Webman\\App::Webman\\{closure}(Object(support\\Request))\n#2 D:\\code\\toys\\webman-admin\\vendor\\workerman\\webman-framework\\src\\App.php(271): plugin\\admin\\app\\middleware\\AccessControl->process(Object(support\\Request), Object(Closure))\n#3 D:\\code\\toys\\webman-admin\\vendor\\workerman\\webman-framework\\src\\App.php(118): Webman\\App::Webman\\{closure}(Object(support\\Request))\n#4 D:\\code\\toys\\webman-admin\\vendor\\workerman\\workerman\\Connection\\TcpConnection.php(638): Webman\\App->onMessage(Object(Workerman\\Connection\\TcpConnection), Object(support\\Request))\n#5 D:\\code\\toys\\webman-admin\\vendor\\workerman\\workerman\\Events\\Select.php(295): Workerman\\Connection\\TcpConnection->baseRead(Resource id #296)\n#6 D:\\code\\toys\\webman-admin\\vendor\\workerman\\workerman\\Worker.php(2465): Workerman\\Events\\Select->loop()\n#7 D:\\code\\toys\\webman-admin\\vendor\\workerman\\workerman\\Worker.php(1449): Workerman\\Worker->run()\n#8 D:\\code\\toys\\webman-admin\\vendor\\workerman\\workerman\\Worker.php(1392): Workerman\\Worker::forkWorkersForWindows()\n#9 D:\\code\\toys\\webman-admin\\vendor\\workerman\\workerman\\Worker.php(557): Workerman\\Worker::forkWorkers()\n#10 D:\\code\\toys\\webman-admin\\vendor\\workerman\\webman-framework\\src\\support\\App.php(124): Workerman\\Worker::runAll()\n#11 D:\\code\\toys\\webman-admin\\start.php(4): support\\App::run()\n#12 {main}"
}
composer 文件
{
"name": "workerman/webman",
"type": "project",
"keywords": [
"high performance",
"http service"
],
"homepage": "http://www.workerman.net",
"license": "MIT",
"description": "High performance HTTP Service Framework.",
"authors": [
{
"name": "walkor",
"email": "walkor@workerman.net",
"homepage": "http://www.workerman.net",
"role": "Developer"
}
],
"support": {
"email": "walkor@workerman.net",
"issues": "https://github.com/walkor/webman/issues",
"forum": "http://wenda.workerman.net/",
"wiki": "http://workerman.net/doc/webman",
"source": "https://github.com/walkor/webman"
},
"require": {
"php": ">=7.2",
"workerman/webman-framework": "^1.4.3",
"monolog/monolog": "^2.0",
"webman/admin": "^0.2.4"
},
"suggest": {
"ext-event": "For better performance. "
},
"autoload": {
"psr-4": {
"": "./",
"App\\": "./app"
},
"files": [
"./support/helpers.php"
]
},
"scripts": {
"post-package-install": [
"support\\Plugin::install"
],
"post-package-update": [
"support\\Plugin::install"
],
"pre-package-uninstall": [
"support\\Plugin::uninstall"
]
}
}
- Dominant language
- JavaScript
- Stars
- 378
- Forks
- 48
- Avg merge
- 20h 9m
- Merged PRs (30d)
- 2
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from webman-php/admin
-
js代码错误 Open
Difficulty 1/5 Under an hour Newbie friendliness 70/100
webman-php/admin#125 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 62/100
webman-php/admin#101 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
webman-php/admin#135 ·
-
在swoole驱动环境下,会出现问题 Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
webman-php/admin#133 ·
-
layui升级问题 Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
webman-php/admin#129 · 3 comments ·
All issues in webman-php/admin
Similar issues
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
georgestephanis/p2026#40 ·
-
Enatega Customer and Rider app: Add-ons price is not visible to customer after order is placed. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Margaret-Petersen/food-delivery-app-clone-react-native#1981 ·