mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 17:21:13 +03:30
fix the issue with the previous commit. event was called before the labels attached to a cycle.
This commit is contained in:
@@ -15,16 +15,6 @@ class Cycle extends Model
|
||||
'date', 'user_id', 'cycle_number', 'sterilizer_id', 'note', 'verified', 'unique_id'
|
||||
];
|
||||
|
||||
protected static function booted()
|
||||
{
|
||||
static::created(function ($cycle) {
|
||||
event(new CycleSaved($cycle));
|
||||
});
|
||||
|
||||
static::updated(function ($cycle) {
|
||||
event(new CycleSaved($cycle));
|
||||
});
|
||||
}
|
||||
|
||||
public function user(): BelongsTo
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user