| Total Complexity | 2 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class Security_group extends Model |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The database table used by the model. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $table = 'security_groups'; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Attributes that should be mass-assignable. |
||
| 18 | * |
||
| 19 | * @var array |
||
| 20 | */ |
||
| 21 | protected $fillable = ['name', 'modified_user_id', 'modified', 'created_user_id', 'created']; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * The attributes excluded from the model's JSON form. |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $hidden = []; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The attributes that should be casted to native types. |
||
| 32 | * |
||
| 33 | * @var array |
||
| 34 | */ |
||
| 35 | protected $casts = []; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * The attributes that should be mutated to dates. |
||
| 39 | * |
||
| 40 | * @var array |
||
| 41 | */ |
||
| 42 | protected $dates = ['modified', 'created', 'created', 'created', 'modified', 'created']; |
||
| 43 | |||
| 44 | // public function securityUsers(){ |
||
| 45 | // return $this->hasMany( User::class); |
||
| 46 | // } |
||
| 47 | |||
| 48 | public function security_users(){ |
||
| 49 | return $this->belongsTo('App\Security_group_user','security_group_id'); |
||
| 50 | } |
||
| 51 | |||
| 52 | |||
| 53 | public function security_group_institution(){ |
||
| 55 | } |
||
| 56 | } |
||
| 57 |