Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: get required fields from request #2

Open
WatheqAlshowaiter opened this issue Aug 7, 2024 · 0 comments
Open

[Feature]: get required fields from request #2

WatheqAlshowaiter opened this issue Aug 7, 2024 · 0 comments
Labels
feature New feature or request

Comments

@WatheqAlshowaiter
Copy link
Owner

Notes

Some people request to be able to get the required fields from request object.

It can be done using macros because Request class is macroable.

It may look like

$request->getRequiredFieldFor('TABLE_NAME_OR_MODEL') // name, email

if no table or name throw an exception.

Also, this may prefer the package to not in required dev

@WatheqAlshowaiter WatheqAlshowaiter added the feature New feature or request label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant