Source code for cock.li
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.

User.php 785B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php namespace App;
  2. use Illuminate\Auth\Authenticatable;
  3. use Illuminate\Database\Eloquent\Model;
  4. use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
  5. class User extends Model implements AuthenticatableContract {
  6. use Authenticatable;
  7. /**
  8. * The database table used by the model.
  9. *
  10. * @var string
  11. */
  12. protected $table = 'users';
  13. /**
  14. * The attributes that are mass assignable.
  15. *
  16. * @var array
  17. */
  18. protected $fillable = ['email', 'password','registered_ip','created_at','updated_at','disabled','mail_location'];
  19. /**
  20. * The attributes excluded from the model's JSON form.
  21. *
  22. * @var array
  23. */
  24. protected $hidden = ['password', 'remember_token'];
  25. public function passwordChanges() {
  26. return $this->hasMany('App\PasswordChange');
  27. }
  28. }