diff --git a/composer.json b/composer.json index 006d047..e9643e9 100644 --- a/composer.json +++ b/composer.json @@ -17,15 +17,15 @@ } ], "require": { - "php": ">=5.4.0", - "illuminate/database": "~4.2|^5", - "illuminate/config": "~4.2|^5", - "nesbot/carbon": "~1.0|~2", - "elasticsearch/elasticsearch": "~6.1" + "php": ">=7.0.0", + "illuminate/database": "~6.0", + "illuminate/config": "~6.0", + "nesbot/carbon": "~2", + "elasticsearch/elasticsearch": "~7.0" }, "require-dev": { - "phpunit/phpunit": "~4.2|~5.0", - "mockery/mockery": "^0.9.4" + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^8.0" }, "autoload": { "psr-4": { diff --git a/src/ElasticquentTrait.php b/src/ElasticquentTrait.php index de56e32..9b19bef 100644 --- a/src/ElasticquentTrait.php +++ b/src/ElasticquentTrait.php @@ -71,7 +71,8 @@ public function newCollection(array $models = array()) */ public function getTypeName() { - return $this->getTable(); + //return $this->getTable(); + return '_doc'; } /**