| Total Complexity | 1 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Employee extends Model implements Authenticatable |
||
| 12 | { |
||
| 13 | use Notifiable; |
||
|
|
|||
| 14 | use AuthenticableTrait; |
||
| 15 | |||
| 16 | protected $table = 'employees'; |
||
| 17 | public $timestamps = true; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The attributes that should be hidden for arrays. |
||
| 21 | * |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $hidden = [ |
||
| 25 | 'password', 'remember_token', |
||
| 26 | ]; |
||
| 27 | protected $dateFormat = 'Y-m-d H:i:s'; |
||
| 28 | |||
| 29 | 6 | public function getActiveAttribute($active) |
|
| 34 |