diff --git a/app/Http/Requests/SaveUserSettingsRequest.php b/app/Http/Requests/SaveUserSettingsRequest.php index 0c664f2..4797455 100644 --- a/app/Http/Requests/SaveUserSettingsRequest.php +++ b/app/Http/Requests/SaveUserSettingsRequest.php @@ -26,8 +26,8 @@ class SaveUserSettingsRequest extends FormRequest { return [ 'name' => 'required|max:255', - 'email' => 'required|email|max:255|unique:users,email,' . Auth::user()->id - // TODO include user profile alias + 'email' => 'required|email|max:255|unique:users,email,' . Auth::user()->id, + 'profile_alias' => 'sometimes|max:255|unique:users,profile_alias,' . Auth::user()->id ]; } } \ No newline at end of file