String Primary Key for Eloquent
發表於 : 2017-06-02 20:40:00
https://stackoverflow.com/questions/345 ... -becomes-0
代碼: 選擇全部
class UserVerification extends Model
{
protected $primaryKey = 'your_key_name'; // or null
public $incrementing = false;
}