You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
540 B

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. <?php
  2. namespace App\Http\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class User extends Model
  5. {
  6. /**
  7. * The attributes that are mass assignable.
  8. *
  9. * @var array
  10. */
  11. protected $fillable = [
  12. 'name', 'email', 'password',
  13. ];
  14. /**
  15. * The attributes that should be hidden for arrays.
  16. *
  17. * @var array
  18. */
  19. protected $hidden = [
  20. 'password', 'remember_token',
  21. ];
  22. /**
  23. * 不能被批量赋值的属性
  24. *
  25. * @var array
  26. */
  27. protected $guarded = [];
  28. }