diff --git a/src/ElasticsearchEngine.php b/src/ElasticsearchEngine.php index feda1c7..f08a0c2 100755 --- a/src/ElasticsearchEngine.php +++ b/src/ElasticsearchEngine.php @@ -282,7 +282,7 @@ public function lazyMap(Builder $builder, $results, $model) */ public function createIndex($name, array $options = []) { - throw new Exception('Database indexes are created automatically upon adding objects.'); + throw new \Exception('Database indexes are created automatically upon adding objects.'); } /**