staudenmeir / belongs-to-through

Laravel Eloquent BelongsToThrough relationships
MIT License
1.15k stars 88 forks source link

Doesn't work for different DB connections #30

Closed aconital closed 5 years ago

aconital commented 5 years ago

belongsToThrough doesn't work when 2 models are in two different databases. Native laravel functions like hasMany,BlongsTo,... work if you overwrite $connection in each model

staudenmeir commented 5 years ago

This has been fixed in the latest release.