route('room'); return $room instanceof Room && $this->user()?->id === $room->owner_id; } /** * Get the validation rules that apply to the request. * * @return array> */ public function rules(): array { return [ 'allow_participants_to_manage_rounds' => ['required', 'boolean'], 'is_persistent' => ['required', 'boolean'], ]; } }