@@ -161,15 +161,15 @@ public function save(): void
161161 {
162162 $ data = $ this ->form ->getState ();
163163 if (!$ this ->user ?->id) {
164- $ user = User::create ([
164+ /* $user = User::create([
165165 'name' => $data['name'],
166166 'email' => $data['email'],
167167 'locale' => $data['locale'],
168168 'password' => bcrypt(uniqid()),
169169 'register_token' => Uuid::uuid4()->toString()
170170 ]);
171171 $user->syncPermissions($this->permissions);
172- $ user ->notify (new UserCreatedNotification ($ user ));
172+ $user->notify(new UserCreatedNotification($user));*/
173173 Notification::make ()
174174 ->success ()
175175 ->title (__ ('User created ' ))
@@ -185,7 +185,7 @@ public function save(): void
185185 $ this ->user ->name = $ data ['name ' ];
186186 $ this ->user ->email = $ data ['email ' ];
187187 $ this ->user ->locale = $ data ['locale ' ];
188- $ this ->user ->save ();
188+ // $this->user->save();
189189 $ this ->user ->syncPermissions ($ this ->permissions );
190190 Notification::make ()
191191 ->success ()
@@ -211,9 +211,8 @@ public function save(): void
211211 *
212212 * @return void
213213 */
214- public function doDeleteUser (): void
215- {
216- $ this ->user ->delete ();
214+ public function doDeleteUser (): void {
215+ // $this->user->delete();
217216 $ this ->deleteConfirmationOpened = false ;
218217 $ this ->emit ('userDeleted ' );
219218 Notification::make ()
0 commit comments