User.php 800 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php namespace App;
  2. use Illuminate\Auth\Authenticatable;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Auth\Passwords\CanResetPassword;
  5. use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
  6. use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;
  7. class User extends Model implements AuthenticatableContract, CanResetPasswordContract {
  8. use Authenticatable, CanResetPassword;
  9. /**
  10. * The database table used by the model.
  11. *
  12. * @var string
  13. */
  14. protected $table = 'users';
  15. /**
  16. * The attributes that are mass assignable.
  17. *
  18. * @var array
  19. */
  20. protected $fillable = ['name', 'email', 'password'];
  21. /**
  22. * The attributes excluded from the model's JSON form.
  23. *
  24. * @var array
  25. */
  26. protected $hidden = ['password', 'remember_token'];
  27. }