Skip to content

Commit 7342457

Browse files
committed
🐛 Properly reference \Exception when trying to create index.
1 parent 1d27a42 commit 7342457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ElasticsearchEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public function lazyMap(Builder $builder, $results, $model)
282282
*/
283283
public function createIndex($name, array $options = [])
284284
{
285-
throw new Exception('Database indexes are created automatically upon adding objects.');
285+
throw new \Exception('Database indexes are created automatically upon adding objects.');
286286
}
287287

288288
/**

0 commit comments

Comments
 (0)