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

Add attribute validation for models #12

Open
4 tasks
jstoone opened this issue Mar 1, 2017 · 0 comments
Open
4 tasks

Add attribute validation for models #12

jstoone opened this issue Mar 1, 2017 · 0 comments
Assignees

Comments

@jstoone
Copy link
Contributor

jstoone commented Mar 1, 2017

What needs to be done

  • Allow models to define Laravel validation rules to attributes
  • Validation should happen before the future is created
  • And return validation error messages upon failing
  • And return true upon a passing validation

Why is this appropriate

Currently invalid data could be scheduled for change, which could lead to uncaught bugs in the future. So this allows the user to preemptively guard for e.g a string being passed to a boolean/tinyint field.

@jstoone jstoone self-assigned this Mar 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant