+ public function makeRunner() {
+ if (!is_array($this->roles)) {
+ $this->roles = ['runner'];
+ } else if (!in_array('runner', $this->roles)) {
+ $newRoles = array_values($this->roles);
+ $newRoles[] = 'runner';
+ $this->roles = $newRoles;
+ }
+ $this->save();
+ ParticipantChanged::dispatch($this);
+ }
+