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
Laravel's validation rules allow for except conditions to be passed to a rule. This allows for validation rules on an update of a user account to ensure that the user's email address is unique, excluding their own user record. This can be done via Rule objects, or by adding the exceptional values to the piped-format validation rule string.
When using the unique_encrypted validation rule, only the first two parameters get handled. This means that an attempt to update a user record by posting a full user object will throw a validation error due to the email address already existing in the database.
The text was updated successfully, but these errors were encountered:
https://laravel.com/docs/5.8/validation#rule-unique
Laravel's validation rules allow for
except
conditions to be passed to a rule. This allows for validation rules on an update of a user account to ensure that the user's email address is unique, excluding their own user record. This can be done viaRule
objects, or by adding the exceptional values to the piped-format validation rule string.The syntax would look something like:
When using the
unique_encrypted
validation rule, only the first two parameters get handled. This means that an attempt to update a user record by posting a full user object will throw a validation error due to the email address already existing in the database.The text was updated successfully, but these errors were encountered: