请问在 L5.6 中如何定义复合主键?
public $incrementing = false;
protected $primaryKey = ['forum_id', 'user_id'];
我使用了这种方法,但是删除的时候会报一个 Illegal offset type 的错误
推荐文章: