diff --git a/composer.json b/composer.json index e77e11f..67115de 100644 --- a/composer.json +++ b/composer.json @@ -20,10 +20,10 @@ "wiki": "https://github.com/uepg/laravel-sybase/wiki" }, "require": { - "php": "^5.6.4 || ^7.0 || ^8.0", + "php": ">=5.5.9 <7.4", "doctrine/dbal": "^2.5", - "illuminate/database": "5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*|9.*", - "illuminate/support": "5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*|8.*|9.*" + "illuminate/database": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*", + "illuminate/support": "5.1.*|5.2.*|5.3.*|5.4.*|5.5.*|5.6.*|5.7.*|5.8.*|6.*|7.*" }, "extra": { "laravel": { diff --git a/src/Database/Connection.php b/src/Database/Connection.php index 58dd798..39db514 100644 --- a/src/Database/Connection.php +++ b/src/Database/Connection.php @@ -83,7 +83,7 @@ public function configureExtraSettings($config = []) throw new \Exception('When application encoding is configured, you need to set up application_charset and database_charset'); } $this->applicationCharset = $config['application_charset']; - $this->databaseCharset = $config['charset']; + $this->databaseCharset = $config['database_charset']; } }