return $this->role === 'admin';
}
+ public function isPrivileged() {
+ return $this->role === 'special' || $this->isAdmin();
+ }
+
public function isApplicant(Tournament $tournament) {
foreach ($tournament->applications as $applicant) {
if ($applicant->user_id == $this->id) {
}
+ public function channel_crews() {
+ return $this->hasMany(ChannelCrew::class);
+ }
+
public function participation() {
return $this->hasMany(Participant::class);
}
protected $fillable = [
'id',
'username',
+ 'discord_nickname',
'discriminator',
'email',
'avatar',