jberrio-ing / laravel-sqlsrv-avoid-error
Installs: 893
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jberrio-ing/laravel-sqlsrv-avoid-error
Requires
- php: >=7.3
- laravel/framework: >=8.0
README
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
composer require jberrio-ing/laravel-sqlsrv-avoid-error
-
Locate the
config/app.phpfileOpen the
config/app.phpfile in your Laravel project. -
Add the Service Provider
In the
providersarray, add the fully qualified class name of theSqlsrvAvoidErrorProviderfrom theSqlsrvAvoidErrornamespace. Yourconfig/app.phpshould look something like this:'providers' => [ // Other service providers SqlsrvAvoidError\Providers\SqlsrvAvoidErrorProvider::class, ],