add display_name support

This commit is contained in:
2023-04-19 09:40:35 +10:00
parent a96aba57f7
commit 51df812a6c
7 changed files with 30 additions and 6 deletions

View File

@@ -17,6 +17,7 @@ class UserRequest extends BaseRequest
'username' => 'required|string|max:255|min:4|unique:users',
'first_name' => 'required|string|max:255|min:2',
'last_name' => 'required|string|max:255|min:2',
'display_name' => 'required|string|max:255',
'email' => 'required|string|email|max:255',
'phone' => ['string', 'regex:/^(\+|00)?[0-9][0-9 \-\(\)\.]{7,32}$/'],
'email_verified_at' => 'date'
@@ -46,6 +47,7 @@ class UserRequest extends BaseRequest
],
'first_name' => 'string|max:255|min:2',
'last_name' => 'string|max:255|min:2',
'display_name' => 'string|max:255|min:2',
'email' => 'string|email|max:255',
'phone' => ['nullable','regex:/^(\+|00)?[0-9][0-9 \-\(\)\.]{7,32}$/'],
'password' => 'string|min:8'