Jul 20, 2017 · 1 min read
Hi Johannes Waruhu,
Both MongoDB and ES use the “_” symbol as a prefix for meta data. That’s why we get a conflict here, that causes the error. To solve this issue just add to your model two properties:
protected $primaryKey = '_id';protected $hidden = ['_id'];
Hope it will help!
