Posted inPHP laravel eloquent: TypeError: Cannot access offset of type array on array in Posted by By xodor 2025-03-17No Comments 这个错误可能是在模型中定义了联合主键,但没有设置自增问题时出现的。 public $incrementing = false; 如上关闭自增后试一下。 xodor View All Posts Post navigation Previous Post 使用php的数据库迁移库phinx,如何建立混合主键?Next Post自建一个类似github的代码仓库服务器