1
0
mirror of https://github.com/flarum/core.git synced 2025-10-13 07:54:25 +02:00

Clean up Eloquent definitions

This commit is contained in:
Toby Zerner
2018-07-21 17:06:42 +09:30
parent 87bba2186e
commit 0fb81958cb
12 changed files with 43 additions and 66 deletions

View File

@@ -33,11 +33,6 @@ class Group extends AbstractModel
use EventGeneratorTrait;
use ScopeVisibilityTrait;
/**
* {@inheritdoc}
*/
protected $table = 'groups';
/**
* The ID of the administrator group.
*/

View File

@@ -32,7 +32,7 @@ class Permission extends AbstractModel
*/
public function group()
{
return $this->belongsTo(Group::class, 'group_id');
return $this->belongsTo(Group::class);
}
/**