Skip to content

Commit

Permalink
Update Trend.php (#57)
Browse files Browse the repository at this point in the history
Support mariadb driver in Laravel 11
  • Loading branch information
sairiz authored Mar 14, 2024
1 parent 7940d5a commit 3dbfe38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Trend.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ protected function getDatePeriod(): Collection
protected function getSqlDate(): string
{
$adapter = match ($this->builder->getConnection()->getDriverName()) {
'mysql' => new MySqlAdapter(),
'mysql', 'mariadb' => new MySqlAdapter(),
'sqlite' => new SqliteAdapter(),
'pgsql' => new PgsqlAdapter(),
default => throw new Error('Unsupported database driver.'),
Expand Down

0 comments on commit 3dbfe38

Please sign in to comment.