From version 5.7 Laravel introduced eager loading optimization when $keyType is "int" or "integer". Composite relation should also follow the optimization, however, it's a quite difficult to implement as well. So I improved that the original optimization can be applied when keys are not composite at least.
Fixes #72.
From version 5.7 Laravel introduced eager loading optimization when
$keyType
is"int"
or"integer"
. Composite relation should also follow the optimization, however, it's a quite difficult to implement as well. So I improved that the original optimization can be applied when keys are not composite at least.