答案对人有帮助,有参考价值1答案没帮助,是错误的答案,答非所问已采纳User.php protected $primaryKey = 'uid'; 来自 https://segmentfault.com/q/1010000006226949