Fix user marques relation
This commit is contained in:
parent
34a589307e
commit
28f95934ed
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue