You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
What needs to be done
true
upon a passing validationWhy 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.The text was updated successfully, but these errors were encountered: