From e894138fd4a31b95bc88e327dc7a2c021147c6bb Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 12 Dec 2023 12:26:02 +0000 Subject: [PATCH] Added $user->created_at to API user create method Signed-off-by: snipe --- app/Http/Controllers/Api/UsersController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index 913fe0f5a7f6..4fb35872a0ea 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -353,6 +353,7 @@ public function store(SaveUserRequest $request) $user = new User; $user->fill($request->all()); + $user->created_by = Auth::user()->id; if ($request->has('permissions')) { $permissions_array = $request->input('permissions');