I would like to make this request with Eloquent (in Laravel) :
$user = User::find(1);
$product = $user->products()->where('id', 1)->first();
But the column ID is in the table user AND in the table product, so I've got an error (column ambiguous). I want to use it without set "products" in hard in the code (because the table name could eventually change...).
How to resolve this ?