Skip to content

Commit 7a1e74e

Browse files
committed
Improving documentation, closes #24
1 parent af9d43a commit 7a1e74e

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

README.md

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff 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

2350
The file is usualy found in `/etc/freetds/freetds.conf`. Set the configuration at global section as the following example:
2451

0 commit comments

Comments
 (0)