This commit is contained in:
2025-11-04 23:35:46 +05:00
parent cc3a9cd854
commit 8c33cc6645
6 changed files with 56 additions and 34 deletions

View File

@@ -154,20 +154,11 @@ class LoanOrder extends Model implements BelongsToBranch, HasStatus
/**
* "boot" method for model
*/
protected static function boot()
protected static function boot(): void
{
parent::boot();
static::creating(LoanOrderRepository::creating());
static::created(LoanOrderRepository::created());
// static::updated(function (LoanOrder $model) {
// if ($model->notes && $model->wasChanged('notes')) {
// Alert::create([
// 'user_id' => $model->user_id,
// 'name' => 'Duýdyryş',
// 'value' => $model->notes,
// ]);
// }
// });
}
}