更改监听

This commit is contained in:
iVampireSP.com 2023-02-22 20:12:42 +08:00
parent ceca3c49ea
commit a9d1adc71e
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -29,9 +29,8 @@ class Reply extends Model
'ip', 'ip',
]; ];
protected static function boot() protected static function booted()
{ {
parent::boot();
static::creating(function (self $model) { static::creating(function (self $model) {
$model->is_pending = false; $model->is_pending = false;