relacje modelu laravel z dwiema kolumnami pasują

Compoships adds support for multi-columns relationships in Laravel 5's Eloquent.

https://github.com/topclaudy/compoships

It allows you to specify relationships using the following syntax:

public function b()
{
    return $this->hasMany('B', ['key1', 'key2'], ['key1', 'key2']);
}
where both columns have to match.
Kriss Sachintha