Skip to content

Commit 5d918cc

Browse files
authored
Merge branch 'demo' into master
2 parents 58e2470 + a2f3f93 commit 5d918cc

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

app/Http/Livewire/Administration/UsersDialog.php

Lines changed: 5 additions & 6 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()
@@ -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

Comments
 (0)