When I try to register a new user, I get this exception. I can't find what is wrong. C:\path\to\my\cms\app\Services\UserService.php ``` public function create($user, $password, $role = 'member', $sendEmail = false) { try { DB::transaction(function () use ($user, $password, $role, $sendEmail) { $this->userMeta->firstOrCreate([ 'user_id' => $user->id ]); $this->assignRole($role, $user->id); if ($sendEmail) { event(new UserRegisteredEmail($user, $password)); } }); $this->setAndSendUserActivationToken($user); return $user; } catch (Exception $e) { throw new Exception("We were unable to generate your profile, please try again later.", 1); } } ```
When I try to register a new user, I get this exception. I can't find what is wrong.
C:\path\to\my\cms\app\Services\UserService.php