event() event(string $event, callable $callback, boolean $override = false) : void 注册回调方法 Parameters string $event 事件名 callable $callback 回调方法 boolean $override 是否覆盖
withEvent() withEvent(boolean $event) : $this 当前操作的事件响应 Parameters boolean $event 是否需要事件响应 Returns $this
beforeInsert() beforeInsert(callable $callback, boolean $override = false) 模型before_insert事件快捷方法 Parameters callable $callback boolean $override
afterInsert() afterInsert(callable $callback, boolean $override = false) 模型after_insert事件快捷方法 Parameters callable $callback boolean $override
beforeUpdate() beforeUpdate(callable $callback, boolean $override = false) 模型before_update事件快捷方法 Parameters callable $callback boolean $override
afterUpdate() afterUpdate(callable $callback, boolean $override = false) 模型after_update事件快捷方法 Parameters callable $callback boolean $override
beforeWrite() beforeWrite(callable $callback, boolean $override = false) 模型before_write事件快捷方法 Parameters callable $callback boolean $override
afterWrite() afterWrite(callable $callback, boolean $override = false) 模型after_write事件快捷方法 Parameters callable $callback boolean $override
beforeDelete() beforeDelete(callable $callback, boolean $override = false) 模型before_delete事件快捷方法 Parameters callable $callback boolean $override
afterDelete() afterDelete(callable $callback, boolean $override = false) 模型after_delete事件快捷方法 Parameters callable $callback boolean $override
beforeRestore() beforeRestore(callable $callback, boolean $override = false) 模型before_restore事件快捷方法 Parameters callable $callback boolean $override
afterRestore() afterRestore(callable $callback, boolean $override = false) 模型after_restore事件快捷方法 Parameters callable $callback boolean $override