FleetCart/Modules/Support/Providers/MySQLScoutServiceProvider.php
2023-06-11 13:14:03 +01:00

23 lines
498 B
PHP

<?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;
});
}
}