wip
This commit is contained in:
@@ -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,
|
||||
// ]);
|
||||
// }
|
||||
// });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user