From 60063b86ba92ba43a2551765997c1d8f1c8bccec Mon Sep 17 00:00:00 2001 From: "fauzgabriel@gmail.com" Date: Mon, 25 May 2026 15:01:25 +0700 Subject: [PATCH] username --- app/Http/Controllers/Api/AuthController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/Api/AuthController.php b/app/Http/Controllers/Api/AuthController.php index f876902..a3d16b3 100644 --- a/app/Http/Controllers/Api/AuthController.php +++ b/app/Http/Controllers/Api/AuthController.php @@ -45,6 +45,7 @@ class AuthController extends Controller 'name' => ['required', 'string', 'max:255'], 'email' => ['required', 'email', 'max:255', 'unique:users'], 'password' => ['required', 'string', 'min:8', 'confirmed'], + 'username' => ['required', 'string', 'max:255'], 'role' => ['string'], 'uid' => ['required','string', 'unique:users'], ]); @@ -53,6 +54,7 @@ class AuthController extends Controller 'name' => $credentials['name'], 'email' => $credentials['email'], 'password' => Hash::make($credentials['password']), + 'username' => $credentials['username'], 'role' => $credentials['role'], 'uid' => $credentials['uid'], ]);