isLocal()) { return true; } /** @var \App\Models\User $user */ $user = auth()->user(); return Ninja::isSelfHost() && $user->account->isPaid(); } public function rules(): array { return [ 'token' => 'required', ]; } protected function failedAuthorization(): void { throw new AuthorizationException( message: ctrans('texts.peppol_not_paid_message'), ); } }