User.php 716 B

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