mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
undo points
This commit is contained in:
@@ -38,6 +38,9 @@ class OrangePill extends Model implements HasMedia
|
||||
static::creating(function ($model) {
|
||||
$model->user->givePoint(new BookCaseOrangePilled($model));
|
||||
});
|
||||
static::deleted(function ($model) {
|
||||
$model->user->undoPoint(new BookCaseOrangePilled($model));
|
||||
});
|
||||
}
|
||||
|
||||
public function registerMediaConversions(Media $media = null): void
|
||||
|
||||
Reference in New Issue
Block a user