In laravel Eloquent: Relationships I want to use two foreign key and two owner key.
How can I do this?
public function user()
{
return $this->belongsTo(
User::class,
'foreign_key1',
'owner_key1',
'foreign_key2',
'owner_key2'
);
}