jberrio-ing/laravel-sqlsrv-avoid-error is a Laravel package.
It currently has 0 GitHub stars and 1.186 downloads on Packagist (latest version v1.0.0).
Install it with composer require jberrio-ing/laravel-sqlsrv-avoid-error.
Discover more Laravel packages by jberrio-ing
or browse all Laravel packages to compare alternatives.
Last updated
SQLSTATE[IMSSP]: An invalid attribute was designated on the PDO object. errorThis error is generated when the PDO::ATTR_STRINGIFY_FETCHES attribute is present in the PDO_Sqlsrv configuration. To fix the error, follow the steps below:
Make sure you have a Laravel application set up.
composer require jberrio-ing/laravel-sqlsrv-avoid-error
Locate the config/app.php file
Open the config/app.php file in your Laravel project.
Add the Service Provider
In the providers array, add the fully qualified class name of the SqlsrvAvoidErrorProvider from the SqlsrvAvoidError namespace. Your config/app.php should look something like this:
'providers' => [
// Other service providers
SqlsrvAvoidError\Providers\SqlsrvAvoidErrorProvider::class,
],