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');