From 1d72d25bbb3f4cec109f8602b87ee37d99c505c8 Mon Sep 17 00:00:00 2001 From: deniskorbakov Date: Sat, 26 Oct 2024 22:52:27 +0300 Subject: [PATCH] feat: create dto --- app/DTO/Api/User/Request/UserUpdateDTO.php | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 app/DTO/Api/User/Request/UserUpdateDTO.php diff --git a/app/DTO/Api/User/Request/UserUpdateDTO.php b/app/DTO/Api/User/Request/UserUpdateDTO.php new file mode 100644 index 0000000..81467e4 --- /dev/null +++ b/app/DTO/Api/User/Request/UserUpdateDTO.php @@ -0,0 +1,41 @@ + [ + 'email', + Rule::unique('users', 'email')->ignore(auth()->id()), + ], + ]; + } +}