阅读背景:

发布模拟Laravel可启动模型的特性。

来源:互联网 

I'm using bootable model trait to register certain events for the models using my Trait. However, I've run into an issue trying to mock models that are using the trait. Specifically, when a Mockery version of the model is instantiated, it's boot code agrees that it should have a bootMyTrait method, but can't find it when it tries to call it. to register cert




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: