Download the PHP package jberrio-ing/laravel-sqlsrv-avoid-error without Composer
On this page you can find all versions of the php package jberrio-ing/laravel-sqlsrv-avoid-error. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-sqlsrv-avoid-error
Resolve the SQLSTATE[IMSSP]: An invalid attribute was designated on the PDO object.
error
This 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:
Prerequisites
Make sure you have a Laravel application set up.
Steps to Register the service provider
-
Install the package
-
Locate the
config/app.php
fileOpen the
config/app.php
file in your Laravel project. -
Add the Service Provider
In the
providers
array, add the fully qualified class name of theSqlsrvAvoidErrorProvider
from theSqlsrvAvoidError
namespace. Yourconfig/app.php
should look something like this:'providers' => [ // Other service providers SqlsrvAvoidError\Providers\SqlsrvAvoidErrorProvider::class, ],