Added validation to the user’s profile alias field
This commit is contained in:
parent
2e0e98810a
commit
c369ea5703
@ -26,8 +26,8 @@ class SaveUserSettingsRequest extends FormRequest
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'name' => 'required|max:255',
|
'name' => 'required|max:255',
|
||||||
'email' => 'required|email|max:255|unique:users,email,' . Auth::user()->id
|
'email' => 'required|email|max:255|unique:users,email,' . Auth::user()->id,
|
||||||
// TODO include user profile alias
|
'profile_alias' => 'sometimes|max:255|unique:users,profile_alias,' . Auth::user()->id
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user