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

FormObjects #1

Open
codeflorist opened this issue Nov 29, 2018 · 0 comments
Open

FormObjects #1

codeflorist opened this issue Nov 29, 2018 · 0 comments
Assignees

Comments

@codeflorist
Copy link
Member

Implement "FormObjects" as central SOA for a form. FormRequestObjects (Rules), HTML and JS are automatically generated to provide a wide set of pre-defined features.

FormObjects are Injected into (both get and post) Controller methods:

In get-method they can be handed over to the view, which can call a generate() on it to generate the actual HTML. JS code is generated automatically with Catch-all function at the end of master template.

In post-methods they function just like FormRequestObjects for validation and provide additional helpers for the controller (e.g. returnSuccess() and returnError() , validation-helpers, etc.).

Artisan Command to generate form-object with boilerplate (e.g. form:create ContactForm).

@codeflorist codeflorist self-assigned this Nov 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant