Looking to hire Laravel developers? Try LaraJobs

laravel-sql-server-custom-connector maintained by martinezart87

Description
This package fix Fatal error: Uncaught PDOException: SQLSTATE[IMSSP]: An invalid attribute was designated on the PDO object in PHP 8.1.22, 8.2.9, 8.3.0
Last update
2023/09/08 11:29 (dev-master)
License
Downloads
969

Comments
comments powered by Disqus

laravel-sql-server-custom-connector

This package fix error:

Fatal error: Uncaught PDOException: SQLSTATE[IMSSP]: An invalid attribute was designated on the PDO object

We are waiting for an official hotfix: https://github.com/microsoft/msphpsql/issues/1474

The official PHP driver patch for SQL Server has been released. There is no need to install this package if you decide to update the driver:

https://github.com/microsoft/msphpsql/releases/tag/v5.11.1

Installation

composer require martinezart87/laravel-sql-server-custom-connector

Edit AppServiceProvider

At Your Laravel project open App\Providers\AppServiceProvider.php add folowing line:

use Martinezart87\CustomSqlServerConnector\CustomSqlServerConnector;

And add into register method following line:

$this->app->bind('db.connector.sqlsrv', CustomSqlServerConnector::class);