在workerman中引入模型查询会报 connection() on null
我把workerman放在了laravel下,然后在workerman的Event.php文件里面引入了一个数据库模型,user模型,但是使用查询的时候会报错:
Error: Call to a member function connection() on null in
请问这是为啥?
推荐文章: