user()->can('manageLeaders', $this->route('meetup')); } /** * @return array> */ public function rules(): array { return [ 'npub' => [ 'required', 'string', 'starts_with:npub1', function (string $attribute, mixed $value, Closure $fail): void { try { (new NostrKey)->convertToHex((string) $value); } catch (\Throwable) { $fail(__('Das ist kein gültiger npub.')); } }, ], ]; } }