Skip to content

Commit

Permalink
Add strike and suspend events
Browse files Browse the repository at this point in the history
  • Loading branch information
cholladay0816 committed Dec 27, 2023
1 parent 5851a2e commit 9617657
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@ public function suspend(int $days = 7, string $reason = 'No reason provided.')
'reason' => $reason,
'expires_at' => $days > 0 ? now()->addDays($days) : null,
]);

//TODO: send out emails, notifications, and restrict access
}

public function strikes()
Expand All @@ -180,7 +178,6 @@ public function strikes()
public function addStrike($days = 7, $reason = 'No reason provided.')
{
Strike::create(['user_id' => $this->id, 'reason' => $reason, 'expires_at' => now()->addDays(7)]);
//TODO: send out emails, notifications
}

public function gallery(): HasMany
Expand Down

0 comments on commit 9617657

Please sign in to comment.