Skip to content

Commit 18d9ff4

Browse files
author
Afonso Gloeden
committed
Usage of the package updated
1 parent c234d39 commit 18d9ff4

File tree

2 files changed

+28
-24
lines changed

2 files changed

+28
-24
lines changed

README.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,16 @@ Update the package dependencies executing:
3131
composer 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

4046
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 [
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
7783
DB_HOST=sybase.myserver.com
7884
DB_PORT=5000
7985
DB_DATABASE=mydatabase
@@ -104,7 +110,7 @@ In the migration file you must replace `use Illuminate\Database\Schema\Blueprint
104110

105111
use 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"
108114
use Illuminate\Database\Migrations\Migration;
109115

110116
class CreateTable extends Migration

composer.json

+17-19
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"name": "uepg/laravel-sybase",
3-
"type": "library",
43
"description": "Sybase based Eloquent module extension for Laravel 5.x.",
4+
"keywords": [
5+
"sybase"
6+
],
7+
"license": "GPL-2.0-only",
58
"authors": [
69
{
710
"name": "Gabriel Tadra Mainginski",
@@ -12,34 +15,29 @@
1215
"email": "[email protected]"
1316
}
1417
],
15-
"keywords": [
16-
"sybase"
17-
],
18-
"license": "GPL-2.0-only",
19-
"require": {
20-
"php": ">=5.6.4",
21-
"doctrine/dbal": "^2.9",
22-
"illuminate/database": "^5.4",
23-
"illuminate/support": "^5.4"
18+
"support": {
19+
"issues": "https://github.com/uepg/laravel-sybase/issues",
20+
"wiki": "https://github.com/uepg/laravel-sybase/wiki"
2421
},
25-
"require-dev": {},
26-
"config": {
27-
"optimize-autoloader": true,
28-
"preferred-install": "dist",
29-
"sort-packages": true
22+
"require": {
23+
"php": "^5.6.4 || ^7.0",
24+
"doctrine/dbal": "^2.5",
25+
"illuminate/database": "5.4.*|5.5.*|5.6.*|5.7.*",
26+
"illuminate/support": "5.4.*|5.5.*|5.6.*|5.7.*"
3027
},
3128
"extra": {
3229
"laravel": {
3330
"providers": [
3431
"Uepg\\LaravelSybase\\SybaseServiceProvider"
35-
]
32+
],
33+
"aliases": {
34+
"UepgBlueprint": "Uepg\\LaravelSybase\\Database\\Schema\\Blueprint"
35+
}
3636
}
3737
},
3838
"autoload": {
3939
"psr-4": {
4040
"Uepg\\LaravelSybase\\": "src/"
4141
}
42-
},
43-
"minimum-stability": "dev",
44-
"prefer-stable": true
42+
}
4543
}

0 commit comments

Comments
 (0)