@@ -31,10 +31,16 @@ Update the package dependencies executing:
3131composer update
3232```
3333
34- Add the following entry to your providers array in ** config/app.php** file:
34+ Add the following entry to your providers array in ** config/app.php** file, optional in Laravel 5.5 or above :
3535
3636``` php
37- Uepg\LaravelSybase\SybaseServiceProvider::class
37+ Uepg\LaravelSybase\SybaseServiceProvider::class,
38+ ```
39+
40+ Add the following entry to your aliases array in ** config/app.php** file, optional in Laravel 5.5 or above:
41+
42+ ``` php
43+ 'UepgBlueprint' => Uepg\LaravelSybase\Database\Schema\Blueprint::class,
3844```
3945
4046Update your ** config/database.php's** default driver with the settings for the ** sqlsrv** or your custom odbc. See the following example:
@@ -50,7 +56,7 @@ return [
5056 'connections' => [
5157 ...
5258
53- 'sqlsrv ' => [
59+ 'sybase ' => [
5460 'driver' => 'sqlsrv',
5561 'host' => env('DB_HOST', 'sybase.myserver.com'),
5662 'port' => env('DB_PORT', '5000'),
@@ -73,7 +79,7 @@ Update your **.env** with the settings for the **sqlsrv** or your custom odbc. S
7379``` text
7480...
7581
76- DB_CONNECTION=sqlsrv
82+ DB_CONNECTION=sybase
7783DB_HOST=sybase.myserver.com
7884DB_PORT=5000
7985DB_DATABASE=mydatabase
@@ -104,7 +110,7 @@ In the migration file you must replace `use Illuminate\Database\Schema\Blueprint
104110
105111use Illuminate\Support\Facades\Schema;
106112// use Illuminate\Database\Schema\Blueprint;
107- use Uepg\LaravelSybase\Database\Schema\Blueprint;
113+ use Uepg\LaravelSybase\Database\Schema\Blueprint; // or "use UepgBlueprint as Blueprint"
108114use Illuminate\Database\Migrations\Migration;
109115
110116class CreateTable extends Migration
0 commit comments