Commit 78a5a056 authored by Jens Segers's avatar Jens Segers Committed by GitHub

Merge pull request #896 from svyandun/master

Rename belongs to many keys
parents 856670ab 25c7e7ba
......@@ -620,7 +620,7 @@ class User extends Eloquent {
public function groups()
{
return $this->belongsToMany('Group', null, 'users', 'groups');
return $this->belongsToMany('Group', null, 'user_ids', 'group_ids');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment