Added validation to the user’s profile alias field

This commit is contained in:
Andy Heathershaw 2018-09-12 21:24:15 +01:00
parent 2e0e98810a
commit c369ea5703

View File

@ -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
]; ];
} }
} }