阅读背景:

在laravel 4中删除多对多模型的reationship

来源:互联网 

I tried the following:

我尝试了以下方法:

$one = OneModel::findOrFail($id);
$two = $one->two_model()->findOrFail($two_id);
$two->delete();
$one = One



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

分享到: