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.

29 lines
439 B

4 years ago
  1. <?php
  2. /**
  3. * User Model
  4. */
  5. class User extends \Illuminate\Database\Eloquent\Model
  6. {
  7. protected $table = "users";
  8. protected $hidden = array('password');
  9. /*
  10. Example of relations:
  11. ---------------------
  12. public function questions() {
  13. return $this->hasMany('Questions');
  14. }
  15. public function personal() {
  16. return $this->hasOne('Personal');
  17. }
  18. public function job() {
  19. return $this->belongsTo('Job');
  20. }
  21. */
  22. }