From 6ff9879ba06935578c50fb6a4a90b6fe6fdbf051 Mon Sep 17 00:00:00 2001 From: Maicol Battistini Date: Sat, 5 Feb 2022 13:49:46 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20Aggiunto=20UserRequest=20al?= =?UTF-8?q?l'API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/JsonApi/V1/Users/UserRequest.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 app/JsonApi/V1/Users/UserRequest.php diff --git a/app/JsonApi/V1/Users/UserRequest.php b/app/JsonApi/V1/Users/UserRequest.php new file mode 100644 index 000000000..7de6bcbcf --- /dev/null +++ b/app/JsonApi/V1/Users/UserRequest.php @@ -0,0 +1,23 @@ + ['required', 'string', 'unique:users,username'], + 'email' => ['required', 'string', 'email', 'unique:users,email'], + ]; + } + +}