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 46feb29 commit be56dd9Copy full SHA for be56dd9
src/Services/IndexService.php
@@ -2,15 +2,13 @@
2
3
namespace DamianTW\MySQLScout\Services;
4
5
-use Illuminate\Console\DetectsApplicationNamespace;
6
use Laravel\Scout\Searchable;
7
use Illuminate\Support\Facades\DB;
8
use DamianTW\MySQLScout\Events;
+use Illuminate\Container\Container;
9
10
class IndexService
11
{
12
- use DetectsApplicationNamespace;
13
-
14
protected $modelService;
15
16
public function __construct(ModelService $modelService)
@@ -112,6 +110,11 @@ protected function getIndexFields()
112
110
return $indexFields;
113
111
}
114
+ public function getAppNamespace()
+ {
115
+ return Container::getInstance()->getNamespace();
116
+ }
117
+
118
protected function updateIndex()
119
120
$this->dropIndex();
0 commit comments