File tree Expand file tree Collapse file tree
app/Http/Livewire/Administration Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments