更新时间:2023-11-09 21:33:16
Laravel / Eloquent不支持复合主键。
Laravel / Eloquent doesn't support composite primary keys.
当您检查Eloquent Model类时,您可以看到主键只能是一个字符串,用于创建WHERE子句。
When you check the Eloquent Model class, you can see that the primary key can only be a string, which is used to create the WHERE clause.