basemkhirat / elasticsearch

The missing elasticsearch ORM for Laravel, Lumen and Native php applications
MIT License
401 stars 130 forks source link

Add `getElasticsearchIndexName`, different model different `index` :) #84

Open PaoJiao opened 6 years ago

PaoJiao commented 6 years ago

hi @basemkhirat ,

Add getElasticsearchIndexName method for model, different model different index :)

if didn't have a getElasticsearchIndexName method, it will use the default index.

PS: could you please make a new tag for recent commits.

many thanks.