webman-admin 登陆报错

Gin

问题描述

这里详细描述问题

webman-admin 登陆报错

程序代码

[2023-08-25 16:26:31] default.ERROR: 127.0.0.1 POST 127.0.0.1:8780/app/admin/account/login
ArgumentCountError: Too few arguments to function Illuminate\Database\Grammar::Illuminate\Database\{closure}(), 1 passed and exactly 2 expected in C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Grammar.php:97
Stack trace:
#0 [internal function]: Illuminate\Database\Grammar->Illuminate\Database\{closure}('*')
#1 C:\Users\Administrator\Desktop\webman-system\vendor\topthink\think-helper\src\Collection.php(326): array_map(Object(Closure), Array)
#2 C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Grammar.php(101): think\Collection->map(Object(Closure))
#3 C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Query\Grammars\Grammar.php(1156): Illuminate\Database\Grammar->wrapSegments(Array)
#4 [internal function]: Illuminate\Database\Query\Grammars\Grammar->wrap('*')
#5 C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Grammar.php(127): array_map(Array, Array)
#6 C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Query\Grammars\Grammar.php(143): Illuminate\Database\Grammar->columnize(Array)
#7 C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Query\Grammars\Grammar.php(91): Illuminate\Database\Query\Grammars\Grammar->compileColumns(Object(Illuminate\Database\Query\Builder), Array)
#8 C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Query\Grammars\Grammar.php(65): Illuminate\Database\Query\Grammars\Grammar->compileComponents(Object(Illuminate\Database\Query\Builder))
#9 C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Query\Builder.php(2221): Illuminate\Database\Query\Grammars\Grammar->compileSelect(Object(Illuminate\Database\Query\Builder))
#10 C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Query\Builder.php(2270): Illuminate\Database\Query\Builder->toSql()
#11 C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Query\Builder.php(2258): Illuminate\Database\Query\Builder->runSelect()
#12 C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Query\Builder.php(2753): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()
#13 C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Query\Builder.php(2259): Illuminate\Database\Query\Builder->onceWithColumns(Array, Object(Closure))
#14 C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Eloquent\Builder.php(548): Illuminate\Database\Query\Builder->get(Array)
#15 C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Eloquent\Builder.php(532): Illuminate\Database\Eloquent\Builder->getModels(Array)
#16 C:\Users\Administrator\Desktop\webman-system\vendor\illuminate\database\Concerns\BuildsQueries.php(143): Illuminate\Database\Eloquent\Builder->get(Array)
#17 C:\Users\Administrator\Desktop\webman-system\plugin\admin\app\controller\AccountController.php(75): Illuminate\Database\Eloquent\Builder->first()
#18 C:\Users\Administrator\Desktop\webman-system\vendor\workerman\webman-framework\src\App.php(319): plugin\admin\app\controller\AccountController->login(Object(support\Request))
#19 C:\Users\Administrator\Desktop\webman-system\vendor\workerman\webman-framework\src\App.php(349): Webman\App::Webman\{closure}(Object(support\Request))
#20 C:\Users\Administrator\Desktop\webman-system\plugin\admin\app\middleware\AccessControl.php(47): Webman\App::Webman\{closure}(Object(support\Request))
#21 C:\Users\Administrator\Desktop\webman-system\vendor\workerman\webman-framework\src\App.php(341): plugin\admin\app\middleware\AccessControl->process(Object(support\Request), Object(Closure))
#22 C:\Users\Administrator\Desktop\webman-system\vendor\workerman\webman-framework\src\App.php(168): Webman\App::Webman\{closure}(Object(support\Request))
#23 C:\Users\Administrator\Desktop\webman-system\vendor\workerman\workerman\Connection\TcpConnection.php(646): Webman\App->onMessage(Object(Workerman\Connection\TcpConnection), Object(support\Request))
#24 C:\Users\Administrator\Desktop\webman-system\vendor\workerman\workerman\Events\Select.php(311): Workerman\Connection\TcpConnection->baseRead(Resource id #421)
#25 C:\Users\Administrator\Desktop\webman-system\vendor\workerman\workerman\Worker.php(1485): Workerman\Events\Select->loop()
#26 C:\Users\Administrator\Desktop\webman-system\vendor\workerman\workerman\Worker.php(1402): Workerman\Worker::forkWorkersForWindows()
#27 C:\Users\Administrator\Desktop\webman-system\vendor\workerman\workerman\Worker.php(560): Workerman\Worker::forkWorkers()
#28 C:\Users\Administrator\Desktop\webman-system\vendor\workerman\webman-framework\src\support\App.php(131): Workerman\Worker::runAll()
#29 C:\Users\Administrator\Desktop\webman-system\start.php(4): support\App::run()
#30 {main} [] []

截图

690 1 0
1个回答

xiuwang

感觉是你用的 illuminate/database 版本太太太老了

  • Gin 2023-08-25

    我更新下试试

年代过于久远,无法发表回答
×
🔝