| Total Complexity | 2 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 11 | class Team extends AbstractModel |
||
| 12 | { |
||
| 13 | use CacheableAll; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * The "booting" method of the model. |
||
| 17 | * |
||
| 18 | * @return void |
||
| 19 | */ |
||
| 20 | protected static function boot() |
||
| 26 | } |
||
| 27 | |||
| 28 | protected $connection = 'mysql'; |
||
| 29 | protected $table = 'team'; |
||
| 30 | protected $primaryKey = 'team_id'; |
||
| 31 | |||
| 32 | protected $fillable = [ |
||
| 33 | 'team_id', |
||
| 34 | 'user_id', |
||
| 35 | 'order', |
||
| 36 | ]; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var array Relationships that should be eager loaded with every query |
||
| 40 | */ |
||
| 41 | protected $with = [ |
||
| 42 | 'user', |
||
| 43 | 'user.file', |
||
| 44 | ]; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Team member's 'user' relationship. |
||
| 48 | * |
||
| 49 | * @return BelongsTo |
||
| 50 | */ |
||
| 51 | public function user() |
||
| 57 |