We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84f6dc6 commit 33f9040Copy full SHA for 33f9040
src/Console/ImportCommand.php
@@ -34,9 +34,11 @@ public function handle(Dispatcher $events)
34
$class = $this->argument('model');
35
36
$model = new $class();
37
- $tnt = new TNTSearch();
+ $tnt = new TNTSearch();
38
$driver = $model->getConnectionName() ?: config('database.default');
39
$config = config('scout.tntsearch') + config("database.connections.$driver");
40
+ $tablePrefix = $config['prefix'] ?? '';
41
+ $tableName = $tablePrefix.$model->getTable();
42
43
$tnt->loadConfig($config);
44
$tnt->setDatabaseHandle(app('db')->connection($driver)->getPdo());
0 commit comments