diff --git a/composer.json b/composer.json index 0a1e2c9..07b0b1f 100644 --- a/composer.json +++ b/composer.json @@ -14,9 +14,8 @@ ], "minimum-stability": "dev", "require": { - "php": ">=5.6.4", - "laravel/framework": "5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*", - "laravel/scout": "^5.0" + "php": ">=7.0", + "laravel/scout": "^6.0" }, "autoload": { "psr-4": { diff --git a/src/Engines/MySQLEngine.php b/src/Engines/MySQLEngine.php index ab58228..91c22eb 100644 --- a/src/Engines/MySQLEngine.php +++ b/src/Engines/MySQLEngine.php @@ -133,6 +133,17 @@ public function getTotalCount($results) return $results['count']; } + /** + * Flush all of the model's records from the engine. + * + * @param \Illuminate\Database\Eloquent\Model $model + * + * @return void + */ + public function flush($model) + { + } + protected function shouldNotRun($builder) { return strlen($builder->query) < config('scout.mysql.min_search_length');