记录一个小问题,在模型关联查询的时候报了:
[2022-09-02 11:00:50] local.ERROR: Call to undefined method App\Models\Product\UserProduct::getConnectionName() {"userId":1,"exception":"[object] (Error(code: 0): Call to undefined method App\\Models\\Product\\UserProduct::getConnectionName() at /home/vagrant/code/...)
[stacktrace]
原因是:UserProduct 忘了 继承 基础Model类
