Skip to content

Commit 26de689

Browse files
boboldehampsinkmsonowal
authored andcommitted
Added support for Scout 6 and Lumen
This adds support for Scout 6.x and removes the hard dependency on laravel/framework so that it can also be used with laravel/lumen-framework. Using laravel is implied anyway by using laravel/scout.
1 parent b039768 commit 26de689

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

composer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@
1414
],
1515
"minimum-stability": "dev",
1616
"require": {
17-
"php": ">=5.6.4",
18-
"laravel/framework": "5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*",
19-
"laravel/scout": "^5.0"
17+
"php": ">=7.0",
18+
"laravel/scout": "^6.0"
2019
},
2120
"autoload": {
2221
"psr-4": {

src/Engines/MySQLEngine.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,17 @@ public function getTotalCount($results)
133133
return $results['count'];
134134
}
135135

136+
/**
137+
* Flush all of the model's records from the engine.
138+
*
139+
* @param \Illuminate\Database\Eloquent\Model $model
140+
*
141+
* @return void
142+
*/
143+
public function flush($model)
144+
{
145+
}
146+
136147
protected function shouldNotRun($builder)
137148
{
138149
return strlen($builder->query) < config('scout.mysql.min_search_length');

0 commit comments

Comments
 (0)