z-song / laravel-admin

Build a full-featured administrative interface in ten minutes
https://laravel-admin.org
MIT License
11.12k stars 2.81k forks source link

Error when table model has multiple primary key #5802

Open DuyNb1995 opened 1 year ago

DuyNb1995 commented 1 year ago

Description:

Model have two primary key: protected $primaryKey = ['report_id', 'user_id'];

When displaying the grid, I get the error: "strtoupper() expects parameter 1 to be string, array given": How can I fix it?

Yanghsuanming commented 1 year ago

Eloquent do not support this feature.