}
+ public function applications() {
+ return $this->hasMany(Application::class);
+ }
+
public function participants() {
return $this->hasMany(Participant::class);
}
return $this->hasMany(Round::class)->orderBy('number', 'DESC');
}
+
+ protected $casts = [
+ 'accept_applications' => 'boolean',
+ 'locked' => 'boolean',
+ 'no_record' => 'boolean',
+ ];
+
}