@@ -31,10 +31,16 @@ Update the package dependencies executing:
31
31
composer update
32
32
```
33
33
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 :
35
35
36
36
``` 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,
38
44
```
39
45
40
46
Update 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 [
50
56
'connections' => [
51
57
...
52
58
53
- 'sqlsrv ' => [
59
+ 'sybase ' => [
54
60
'driver' => 'sqlsrv',
55
61
'host' => env('DB_HOST', 'sybase.myserver.com'),
56
62
'port' => env('DB_PORT', '5000'),
@@ -73,7 +79,7 @@ Update your **.env** with the settings for the **sqlsrv** or your custom odbc. S
73
79
``` text
74
80
...
75
81
76
- DB_CONNECTION=sqlsrv
82
+ DB_CONNECTION=sybase
77
83
DB_HOST=sybase.myserver.com
78
84
DB_PORT=5000
79
85
DB_DATABASE=mydatabase
@@ -104,7 +110,7 @@ In the migration file you must replace `use Illuminate\Database\Schema\Blueprint
104
110
105
111
use Illuminate\Support\Facades\Schema;
106
112
// use Illuminate\Database\Schema\Blueprint;
107
- use Uepg\LaravelSybase\Database\Schema\Blueprint;
113
+ use Uepg\LaravelSybase\Database\Schema\Blueprint; // or "use UepgBlueprint as Blueprint"
108
114
use Illuminate\Database\Migrations\Migration;
109
115
110
116
class CreateTable extends Migration
0 commit comments