|string> */ public function rules(): array { return [ /** * Phone number to authenticate * * @example Mahmyt Allaberdiyev */ 'name' => ['required', 'string', 'max:255'], /** * Phone number to authenticate * * @example 65707012 */ 'phone' => ['required', 'int', 'between:61000000,71999999', Rule::unique('users', 'phone')->ignore(auth()->id())], /** * Password (leave empty to save it same) * * @example Mpassword */ 'password' => ['nullable', 'string'], ]; } }