Skip to content

Commit 25c7e7b

Browse files
committed
Rename belongs to many keys
1 parent 856670a commit 25c7e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ class User extends Eloquent {
620620

621621
public function groups()
622622
{
623-
return $this->belongsToMany('Group', null, 'users', 'groups');
623+
return $this->belongsToMany('Group', null, 'user_ids', 'group_ids');
624624
}
625625

626626
}

0 commit comments

Comments
 (0)