Skip to content

Commit

Permalink
Update Role.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Feb 13, 2024
1 parent 835268a commit 7ae1891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ class Role extends Model
public function users()
{
// TASK: fix this by adding a parameter
return $this->belongsToMany(User::class);
return $this->belongsToMany(User::class,'users_roles');
}
}

0 comments on commit 7ae1891

Please sign in to comment.