程序报错 Illegal offset type 求大佬们帮忙看看

http://homestead.test/test
Laravel版本:5.7
访问的url : http://homestead.test/test
报错信息:Illegal offset type
错误目录:/home/vagrant/Code/Laravel/vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php

    public function guard($name = null)
    {
        $name = $name ?: $this->getDefaultDriver();

        return $this->guards[$name] ?? $this->guards[$name] = $this->resolve($name);
    }

file

web.php
file

UsersController
file
view的模板已经存在
求各位大佬求助

《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
最佳答案

file
将 “Auth” 改成 “auth”

5年前 评论
讨论数量: 6

file
为何要加这个,去掉试一试

5年前 评论
ruke

@sunnylin 这是IDE的提示...

5年前 评论

file
将 “Auth” 改成 “auth”

5年前 评论

@sunnylin 这个试过了,没啥用

5年前 评论

是不是还有其他的地方,你也写成大写了。我试过用大写,就是报你上面的错误。然后将大写改成小写,错误就没有了。

5年前 评论

@sunnylin 真的是喔!!我这边在清下缓存就好了~谢啦老哥

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!