From af9d43a5bbeb1e5a753e5b6411edaf4977828d38 Mon Sep 17 00:00:00 2001 From: Ademir Mazer Junior Date: Thu, 6 Oct 2016 08:27:05 -0300 Subject: [PATCH 1/2] Better readability --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b3d96cc..ee31504 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,16 @@ Sybase ASE based Eloquent module extension for Laravel 5.x. - Enables use of multiple kinds of fields. - Use default eloquent: works with odbc and dblib! -- Migrations! (alpha) +- Migrations! (WIP - Work in Progress) ### Install -- Require in your **composer.json** this package: ``"uepg/laravel-sybase": "1.*"`` + +Add the following in the require section of your **composer.json**: + +```json +"uepg/laravel-sybase": "1.*" +``` + - Run ``composer update`` - Add to your providers in **./config./app.php**: ``Uepg\LaravelSybase\Database\SybaseServiceProvider::class`` - Update your **./config./database.php**'s default driver to **sqlsrv** or your custom odbc. From 7a1e74ebc25d96261425aae11b9b27c043c8e57b Mon Sep 17 00:00:00 2001 From: Ademir Mazer Junior Date: Thu, 6 Oct 2016 08:36:04 -0300 Subject: [PATCH 2/2] Improving documentation, closes #24 --- README.md | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ee31504..0fe3898 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,40 @@ Add the following in the require section of your **composer.json**: "uepg/laravel-sybase": "1.*" ``` -- Run ``composer update`` -- Add to your providers in **./config./app.php**: ``Uepg\LaravelSybase\Database\SybaseServiceProvider::class`` -- Update your **./config./database.php**'s default driver to **sqlsrv** or your custom odbc. +Update the package dependencies executing: + +```shell +composer update +``` + +Add the following entry to your providers array in **./config./app.php** file: + +```php +Uepg\LaravelSybase\Database\SybaseServiceProvider::class +``` + +Update your ./config./database.php's default driver with the settings for the **sqlsrv** or your custom odbc. See the following example: + +```php + 'connections' => [ + + ... + + 'sybaseuepg-aluno' => [ + 'driver' => 'sqlsrv', + 'host' => env('DB_HOST', 'sybase.myserver.br:5000'), + 'database' => env('DB_DATABASE', 'mydatabase'), + 'username' => env('DB_USERNAME', 'forge'), + 'password' => env('DB_PASSWORD', 'secret'), + 'charset' => 'utf8', + 'prefix' => '', + ], +``` + ### Configuration of freetds driver -In Linux systems the driver version must be set in `freetds.conf` to the right use of charset pages. +In Linux systems the driver version must be set in `freetds.conf` file to the right use of charset pages. The file is usualy found in `/etc/freetds/freetds.conf`. Set the configuration at global section as the following example: