Closed anolek closed 7 years ago
Hi,
I have a Model with a custom primaryKey and found that my documents are not indexing properly.
protected $primaryKey = 'my_custom_field_name';
After looking in the code, i found a config about it, but nothing in the documentation mention it.
'models' => [ App\Models\MyModel::class => [ // Hidden feature ! 'primary_key' => 'my_custom_field_name',
Could you please add it ? :)
Thanks !
Hi,
I have a Model with a custom primaryKey and found that my documents are not indexing properly.
After looking in the code, i found a config about it, but nothing in the documentation mention it.
Could you please add it ? :)
Thanks !