René's URL Explorer Experiment


Title: [DISCUSSÃO] Sugestão de melhoria · Issue #134 · geekcom/validator-docs · GitHub

Open Graph Title: [DISCUSSÃO] Sugestão de melhoria · Issue #134 · geekcom/validator-docs

X Title: [DISCUSSÃO] Sugestão de melhoria · Issue #134 · geekcom/validator-docs

Description: Sugiro a refatoração do aquivo ValidatorProvider para ond ele extenda as validações já existentes no laravel sem substituir a resolução da validação (código citado), fazendo isso tambem seria nescessario refetorar as rules, abaixo segue ...

Open Graph Description: Sugiro a refatoração do aquivo ValidatorProvider para ond ele extenda as validações já existentes no laravel sem substituir a resolução da validação (código citado), fazendo isso tambem seria nesce...

X Description: Sugiro a refatoração do aquivo ValidatorProvider para ond ele extenda as validações já existentes no laravel sem substituir a resolução da validação (código citado), fazendo isso tambem seria nesce...

Opengraph URL: https://github.com/geekcom/validator-docs/issues/134

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[DISCUSSÃO] Sugestão de melhoria","articleBody":"Sugiro a refatoração do aquivo ValidatorProvider para ond ele extenda as validações já existentes no laravel sem substituir a resolução da validação (código citado), fazendo isso tambem seria nescessario refetorar as rules, abaixo segue exemplo.\r\n\r\nhttps://github.com/geekcom/validator-docs/blob/19ebbc9452aeb6fd88c6770ca3bc72b4e094263d/src/validator-docs/ValidatorProvider.php#L27-L34\r\n\r\nExemplo de provider\r\n\r\n```PHP\r\nuse App\\Rules\\Base64ImageRule;\r\nuse App\\Rules\\CheckBilletDueDateRule;\r\nuse App\\Rules\\CheckBilletPaymentRule;\r\nuse App\\Rules\\CheckCreditCardInstallmentsRule;\r\nuse App\\Rules\\CheckInstallmentsRule;\r\nuse App\\Rules\\EnumRule;\r\nuse Illuminate\\Support\\ServiceProvider;\r\nuse Validator;\r\n\r\nclass ValidationServiceProvider extends ServiceProvider\r\n{\r\n    protected array $rules = [\r\n        'enum' =\u003e EnumRule::class,\r\n        'base64_image' =\u003e Base64ImageRule::class,\r\n        'check_installments' =\u003e CheckInstallmentsRule::class,\r\n        'billet_value_paid' =\u003e CheckBilletPaymentRule::class,\r\n        'billet_due_date' =\u003e CheckBilletDueDateRule::class,\r\n        'check_installments_count' =\u003e CheckCreditCardInstallmentsRule::class,\r\n    ];\r\n\r\n    /**\r\n     * @return void\r\n     */\r\n    public function boot(): void\r\n    {\r\n        $this-\u003eregisterValidationRules();\r\n    }\r\n\r\n    /**\r\n     * @return void\r\n     */\r\n    private function registerValidationRules(): void\r\n    {\r\n        foreach ($this-\u003erules as $alias =\u003e $class) {\r\n            if (is_string($alias)) {\r\n                Validator::extend($alias, \"$class@passes\");\r\n            }\r\n        }\r\n    }\r\n}\r\n```\r\n**Este exemplo tirei de um projeto que fiz**\r\n\r\n## Prós \r\n- Maior compatibilidade com as versoes do Laravel (pelo menos do meu ponto de vista)\r\n- Suporte a customização dos attibutes\r\n- Suporte a customização das mensagens por arquivos de tradução\r\n- Resolução da issue #133\r\n\r\n## Contras\r\n- Trabalho para refatorar (posso ajudar)\r\n- Possivel perda de retrocompatibilidade (brakingchange)\r\n- Possiveis erros/problemas que eu ainda não encontrei\r\n\r\n\r\n","author":{"url":"https://github.com/guilhermebillig","@type":"Person","name":"guilhermebillig"},"datePublished":"2022-11-22T15:13:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/134/validator-docs/issues/134"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:86b7af55-eddd-d119-986f-e87a87eacdfe
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id83D6:342B6:A336FA7:DD87496:6A4BB2B3
html-safe-nonce8eefd4a1a0068b6b47cc7df9b0ce765cff0710ccfb606ca8e1c06c781701700a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0Q2OjM0MkI2OkEzMzZGQTc6REQ4NzQ5Njo2QTRCQjJCMyIsInZpc2l0b3JfaWQiOiIxNDMxOTI2MDA5MzIyMjU1MDI4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac5253290d302ba0cca6a70e0b8e76ef2c743241fb1f756bed316b98e930a7a057
hovercard-subject-tagissue:1460063706
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/geekcom/validator-docs/134/issue_layout
twitter:imagehttps://opengraph.githubassets.com/199c28c1c010f4f7305aecfc58f520679de70c7dad17028e1f417dc108a33855/geekcom/validator-docs/issues/134
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/199c28c1c010f4f7305aecfc58f520679de70c7dad17028e1f417dc108a33855/geekcom/validator-docs/issues/134
og:image:altSugiro a refatoração do aquivo ValidatorProvider para ond ele extenda as validações já existentes no laravel sem substituir a resolução da validação (código citado), fazendo isso tambem seria nesce...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameguilhermebillig
hostnamegithub.com
expected-hostnamegithub.com
Noneae1c14875555a1dd92bdef45baa6dd9aa796df891e4e471989f7117fe3139fc1
turbo-cache-controlno-preview
go-importgithub.com/geekcom/validator-docs git https://github.com/geekcom/validator-docs.git
octolytics-dimension-user_id3955933
octolytics-dimension-user_logingeekcom
octolytics-dimension-repository_id64307903
octolytics-dimension-repository_nwogeekcom/validator-docs
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id64307903
octolytics-dimension-repository_network_root_nwogeekcom/validator-docs
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release68fba4ebcf15cde644b66de9a06e0a8582279435
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/geekcom/validator-docs/issues/134#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgeekcom%2Fvalidator-docs%2Fissues%2F134
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgeekcom%2Fvalidator-docs%2Fissues%2F134
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=geekcom%2Fvalidator-docs
Reloadhttps://github.com/geekcom/validator-docs/issues/134
Reloadhttps://github.com/geekcom/validator-docs/issues/134
Reloadhttps://github.com/geekcom/validator-docs/issues/134
geekcom https://github.com/geekcom
validator-docshttps://github.com/geekcom/validator-docs
Please reload this pagehttps://github.com/geekcom/validator-docs/issues/134
Notifications https://github.com/login?return_to=%2Fgeekcom%2Fvalidator-docs
Fork 99 https://github.com/login?return_to=%2Fgeekcom%2Fvalidator-docs
Star 586 https://github.com/login?return_to=%2Fgeekcom%2Fvalidator-docs
Code https://github.com/geekcom/validator-docs
Issues 3 https://github.com/geekcom/validator-docs/issues
Pull requests 1 https://github.com/geekcom/validator-docs/pulls
Actions https://github.com/geekcom/validator-docs/actions
Projects https://github.com/geekcom/validator-docs/projects
Security and quality 0 https://github.com/geekcom/validator-docs/security
Insights https://github.com/geekcom/validator-docs/pulse
Code https://github.com/geekcom/validator-docs
Issues https://github.com/geekcom/validator-docs/issues
Pull requests https://github.com/geekcom/validator-docs/pulls
Actions https://github.com/geekcom/validator-docs/actions
Projects https://github.com/geekcom/validator-docs/projects
Security and quality https://github.com/geekcom/validator-docs/security
Insights https://github.com/geekcom/validator-docs/pulse
[DISCUSSÃO] Sugestão de melhoriahttps://github.com/geekcom/validator-docs/issues/134#top
https://github.com/guilhermebillig
guilhermebillighttps://github.com/guilhermebillig
on Nov 22, 2022https://github.com/geekcom/validator-docs/issues/134#issue-1460063706
validator-docs/src/validator-docs/ValidatorProvider.phphttps://github.com/geekcom/validator-docs/blob/19ebbc9452aeb6fd88c6770ca3bc72b4e094263d/src/validator-docs/ValidatorProvider.php#L27-L34
19ebbc9https://github.com/geekcom/validator-docs/commit/19ebbc9452aeb6fd88c6770ca3bc72b4e094263d
Substituição de mensagens de erro #133https://github.com/geekcom/validator-docs/issues/133
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.