如何在 Laravel 的观察者模型事件 (以及模型自定义事件) 上传递额外的参数
参考文档
比如:
class MyObserver
{
public function saving(Model $model)
{
// 如何传递其他额外的参数,而不紧紧是默认的$model
}
}
推荐文章: