Skip to content

Commit 3c7c470

Browse files
author
Hatim EL OUFIR
committed
Remove save / delete disablers
1 parent 5d918cc commit 3c7c470

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/Http/Livewire/Administration/UsersDialog.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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()
@@ -212,7 +212,7 @@ public function save(): void
212212
* @return void
213213
*/
214214
public function doDeleteUser(): void {
215-
// $this->user->delete();
215+
$this->user->delete();
216216
$this->deleteConfirmationOpened = false;
217217
$this->emit('userDeleted');
218218
Notification::make()

0 commit comments

Comments
 (0)