feat(auth): add phone to UpdateSelfRequest for profile edits
This commit is contained in:
@@ -24,6 +24,10 @@ class UpdateSelfRequest extends FormRequest
|
||||
'sometimes', 'required', 'email', 'max:191',
|
||||
Rule::unique('users', 'email')->whereNull('deleted_at')->ignore($userId),
|
||||
],
|
||||
'phone' => [
|
||||
'sometimes', 'nullable', 'string', 'max:20',
|
||||
Rule::unique('users', 'phone')->whereNull('deleted_at')->ignore($userId),
|
||||
],
|
||||
'preferred_language' => ['sometimes', 'string', 'in:en,tl,ceb'],
|
||||
'avatar_path' => ['sometimes', 'nullable', 'string', 'max:255'],
|
||||
'fcm_token' => ['sometimes', 'nullable', 'string', 'max:255'],
|
||||
|
||||
Reference in New Issue
Block a user