Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/Traits/Activatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ public function isNotActivated(): bool
/**
* Activates the user.
*/
public function activate(): bool
public function activate(): void
{
$model = auth()->getProvider();
$users = auth()->getProvider();

return $model->update($this->id, ['active' => 1]);
$users->update($this->id, ['active' => 1]);
}

/**
* Deactivates the user.
*/
public function deactivate(): bool
public function deactivate(): void
{
$model = auth()->getProvider();
$users = auth()->getProvider();

return $model->update($this->id, ['active' => 0]);
$users->update($this->id, ['active' => 0]);
}

/**
Expand Down