+ public function isParticipant(Tournament $tournament) {
+ foreach ($tournament->participants as $participant) {
+ if ($participant->user->id == $this->id) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public function participation() {
+ return $this->hasMany(Participant::class);
+ }
+