| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 6 | class Group extends Model |
||
| 7 | { |
||
| 8 | protected $table='group'; |
||
| 9 | protected $primaryKey='gid'; |
||
| 10 | |||
| 11 | public function members() |
||
| 12 | { |
||
| 13 | return $this->hasMany('App\Models\Eloquent\GroupMember', 'gid','gid'); |
||
| 14 | } |
||
| 15 | |||
| 16 | public function banneds() |
||
| 17 | { |
||
| 18 | return $this->hasMany('App\Models\Eloquent\GroupBanned', 'group_id', 'gid'); |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getLeaderAttribute() |
||
| 24 | } |
||
| 25 | |||
| 26 | public function getLinkAttribute() |
||
| 29 | } |
||
| 30 | } |
||
| 31 |