We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f519e38 + 9412d91 commit 5c7e0f8Copy full SHA for 5c7e0f8
src/Traits/Activatable.php
@@ -27,21 +27,21 @@ public function isNotActivated(): bool
27
/**
28
* Activates the user.
29
*/
30
- public function activate(): bool
+ public function activate(): void
31
{
32
- $model = auth()->getProvider();
+ $users = auth()->getProvider();
33
34
- return $model->update($this->id, ['active' => 1]);
+ $users->update($this->id, ['active' => 1]);
35
}
36
37
38
* Deactivates the user.
39
40
- public function deactivate(): bool
+ public function deactivate(): void
41
42
43
44
- return $model->update($this->id, ['active' => 0]);
+ $users->update($this->id, ['active' => 0]);
45
46
47
0 commit comments