roots / acorn

Laravel components for WordPress plugins and themes
https://roots.io/acorn/
MIT License
809 stars 94 forks source link

Request validation and signature macros are missing #409

Open stefanfisk opened 2 hours ago

stefanfisk commented 2 hours ago

Version

4.2.2

What did you expect to happen?

I expected the request validation and signature macros to be added.

What actually happens?

They are not.

I think that we need just need to copy FoundationServiceProvider::registerRequestValidation() and FoundationServiceProvider::registerRequestSignatureValidation().

AFAICT the functions work as expected as long as the macros are added.

Steps to reproduce

Try calling $request->validate().

System info

No response

Log output

No response

Please confirm this isn't a support request.

Yes

stefanfisk commented 2 hours ago

I can create a PR. Should they go in AcornServiceProvider?