File tree Expand file tree Collapse file tree 1 file changed +31
-4
lines changed
Expand file tree Collapse file tree 1 file changed +31
-4
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,40 @@ Add the following in the require section of your **composer.json**:
1212"uepg/laravel-sybase" : " 1.*"
1313```
1414
15- - Run `` composer update ``
16- - Add to your providers in ** ./config./app.php** : `` Uepg\LaravelSybase\Database\SybaseServiceProvider::class ``
17- - Update your ** ./config./database.php** 's default driver to ** sqlsrv** or your custom odbc.
15+ Update the package dependencies executing:
16+
17+ ``` shell
18+ composer update
19+ ```
20+
21+ Add the following entry to your providers array in ** ./config./app.php** file:
22+
23+ ``` php
24+ Uepg\LaravelSybase\Database\SybaseServiceProvider::class
25+ ```
26+
27+ Update your ./config./database.php's default driver with the settings for the ** sqlsrv** or your custom odbc. See the following example:
28+
29+ ``` php
30+ 'connections' => [
31+
32+ ...
33+
34+ 'sybaseuepg-aluno' => [
35+ 'driver' => 'sqlsrv',
36+ 'host' => env('DB_HOST', 'sybase.myserver.br:5000'),
37+ 'database' => env('DB_DATABASE', 'mydatabase'),
38+ 'username' => env('DB_USERNAME', 'forge'),
39+ 'password' => env('DB_PASSWORD', 'secret'),
40+ 'charset' => 'utf8',
41+ 'prefix' => '',
42+ ],
43+ ```
44+
1845
1946### Configuration of freetds driver
2047
21- In Linux systems the driver version must be set in ` freetds.conf ` to the right use of charset pages.
48+ In Linux systems the driver version must be set in ` freetds.conf ` file to the right use of charset pages.
2249
2350The file is usualy found in ` /etc/freetds/freetds.conf ` . Set the configuration at global section as the following example:
2451
You can’t perform that action at this time.
0 commit comments