Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit 36c6b99

Browse files
AustinWmsonowal
authored andcommitted
Support for MariaDB Driver
1 parent f63480b commit 36c6b99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Services/IndexService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public function getAllSearchableModels($directories)
4040
$connectionName = $modelInstance->getConnectionName() !== null ?
4141
$modelInstance->getConnectionName() : config('database.default');
4242

43-
$isMySQL = config("database.connections.$connectionName.driver") === 'mysql';
43+
$isMySQL = config("database.connections.$connectionName.driver") === 'mysql' ||
44+
config("database.connections.$connectionName.driver") === 'mariadb';
4445

4546
if ($isMySQL) {
4647
$searchableModels[] = $class;

0 commit comments

Comments
 (0)