Skip to content

Commit 1782a86

Browse files
authored
Merge pull request babenkoivan#290 from aaronhuisinga/master
Always run bootSearchable method
2 parents 1a63514 + e235805 commit 1782a86

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/Searchable.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
trait Searchable
1212
{
1313
use SourceSearchable {
14-
SourceSearchable::bootSearchable as sourceBootSearchable;
1514
SourceSearchable::getScoutKeyName as sourceGetScoutKeyName;
1615
}
1716

@@ -22,29 +21,6 @@ trait Searchable
2221
*/
2322
private $highlight = null;
2423

25-
/**
26-
* Defines if the model is searchable.
27-
*
28-
* @var bool
29-
*/
30-
protected static $isSearchableTraitBooted = false;
31-
32-
/**
33-
* Boot the trait.
34-
*
35-
* @return void
36-
*/
37-
public static function bootSearchable()
38-
{
39-
if (static::$isSearchableTraitBooted) {
40-
return;
41-
}
42-
43-
self::sourceBootSearchable();
44-
45-
static::$isSearchableTraitBooted = true;
46-
}
47-
4824
/**
4925
* Get the index configurator.
5026
*

0 commit comments

Comments
 (0)