FleetCart/Modules/Support/Providers/MySQLScoutServiceProvider.php

23 lines
498 B
PHP
Raw Normal View History

2023-06-11 12:14:03 +00:00
<?php
namespace Modules\Support\Providers;
use Laravel\Scout\EngineManager;
use Illuminate\Support\ServiceProvider;
use Modules\Support\Search\MySqlSearchEngine;
class MySQLScoutServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
$this->app[EngineManager::class]->extend('mysql', function () {
return new MySqlSearchEngine;
});
}
}