Fix user marques relation

This commit is contained in:
Jérémy Munsch 2022-07-25 13:09:46 +02:00
parent 34a589307e
commit 28f95934ed
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -94,7 +94,7 @@ class User extends Authenticatable
*/
public function marques()
{
return $this->belongsToMany(Marque::class);
return $this->belongsToMany(Marque::class, 'marque_user', 'user_id', 'marque_id');
}
/**