event() event(string $event, callable $callback, bool $override = false) : void 注册回调方法 Parameters string $event 事件名 callable $callback 回调方法 bool $override 是否覆盖
beforeInsert() beforeInsert(callable $callback, bool $override = false) : mixed 模型before_insert事件快捷方法 Parameters callable $callback bool $override Returns mixed —
afterInsert() afterInsert(callable $callback, bool $override = false) : mixed 模型after_insert事件快捷方法 Parameters callable $callback bool $override Returns mixed —
beforeUpdate() beforeUpdate(callable $callback, bool $override = false) : mixed 模型before_update事件快捷方法 Parameters callable $callback bool $override Returns mixed —
afterUpdate() afterUpdate(callable $callback, bool $override = false) : mixed 模型after_update事件快捷方法 Parameters callable $callback bool $override Returns mixed —
beforeWrite() beforeWrite(callable $callback, bool $override = false) : mixed 模型before_write事件快捷方法 Parameters callable $callback bool $override Returns mixed —
afterWrite() afterWrite(callable $callback, bool $override = false) : mixed 模型after_write事件快捷方法 Parameters callable $callback bool $override Returns mixed —
beforeDelete() beforeDelete(callable $callback, bool $override = false) : mixed 模型before_delete事件快捷方法 Parameters callable $callback bool $override Returns mixed —
afterDelete() afterDelete(callable $callback, bool $override = false) : mixed 模型after_delete事件快捷方法 Parameters callable $callback bool $override Returns mixed —
beforeRestore() beforeRestore(callable $callback, bool $override = false) : mixed 模型before_restore事件快捷方法 Parameters callable $callback bool $override Returns mixed —
afterRestore() afterRestore(callable $callback, bool $override = false) : mixed 模型after_restore事件快捷方法 Parameters callable $callback bool $override Returns mixed —