Major changes - Vote system now finished

This commit is contained in:
2020-05-30 00:20:39 +01:00
parent cc8c293cc6
commit d15c0cb12f
32 changed files with 1791 additions and 17 deletions

View File

@@ -42,8 +42,14 @@ class User extends Authenticatable
return $this->hasMany('App\Application', 'applicantUserID', 'id');
}
public function votes()
{
return $this->hasMany('App\Vote', 'userID', 'id');
}
public function profile()
{
return $this->hasOne('App\Profile', 'userID', 'id');
}
}