How would you use Laravel Data package to validate requests for setting manipulation? #331
Unanswered
serious-angel
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Developers,
Thank you for the marvel!
For example, we have the following setting:
We have the package Laravel Data already installed, since it was mentioned in the scaffolded configuration file for Laravel Settings:
laravel-settings/config/settings.php
Line 78 in fd3db34
Would you create a definite class like the following?:
The above separate class seems interesting, but perhaps, I currently don't see a more proper way to use the setting in proper request for API with the package Laravel Data features (e.g. custom rule messages, TypeScript), and would I appreciate a hint on how to prepare a request class for the setting.
Best and kind regards
Beta Was this translation helpful? Give feedback.
All reactions