阅读背景:

在laravel 5.1中使用hasManyThrough关系的模型的不同数据库连接

来源:互联网 

I am trying to use the hasManyThrough relationship in laravel 5.1 but the sql query is not using the appropriate prefix defined in each connection for each model used. I have 3 models 2 of which use the same connection and one of them uses a different one. The only difference between the connections is the prefix the database is the same.I am trying to use the hasManyThrough relations




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: