| Total Complexity | 0 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class User extends Authenticatable |
||
| 11 | { |
||
| 12 | use Notifiable; |
||
|
|
|||
| 13 | use HasRolesAndAbilities; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * The attributes that are mass assignable. |
||
| 17 | * |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected $fillable = [ |
||
| 21 | 'name', 'email', 'password', |
||
| 22 | ]; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The attributes that should be hidden for arrays. |
||
| 26 | * |
||
| 27 | * @var array |
||
| 28 | */ |
||
| 29 | protected $hidden = [ |
||
| 30 | 'password', 'remember_token', |
||
| 31 | ]; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * The attributes that should be cast to native types. |
||
| 35 | * |
||
| 36 | * @var array |
||
| 37 | */ |
||
| 38 | protected $casts = [ |
||
| 39 | 'email_verified_at' => 'datetime', |
||
| 40 | ]; |
||
| 42 |