You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,19 +25,17 @@ Use [composer](https://getcomposer.org) to install this package.
25
25
$ composer update
26
26
```
27
27
28
-
### Configuration
29
-
There are two ways to configure laravel-db2. You can choose the most convenient way for you. You can put your DB2 credentials into ``app/config/database.php`` (option 1) file or use package config file which you can generate through command line by artisan (option 2).
28
+
### Database Configuration
29
+
There are two ways to configure laravel-db2. You can choose the most convenient way for you. You can put your DB2 credentials into ``config/database.php`` (option 1) file or use package config file which you can generate through command line by artisan (option 2).
30
30
31
31
Please check appropriate specific DSN parameters for your connection.
If you encounter issues with char fields containing characters outside the invariant character set (for example: "ü") please see : https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014094907
36
-
For PHP applications using the UTF8 locale the workaround to prevent the extra garbage data is to set the following connection string keyword:
37
-
DEBUG = 65536
35
+
If you encounter issues with char fields containing characters outside the invariant character set (for example: "ü") in PHP applications using the UTF8 locale the workaround to prevent the extra garbage data is to set the following connection string keyword: ``DEBUG = 65536``
38
36
39
-
#### Option 1: Configure DB2 using ``app/config/database.php`` file
40
-
Simply add this code at the end of your ``app/config/database.php`` file:
37
+
#### Option 1: Configure DB2 using ``config/database.php`` file
38
+
Simply add this code at the end of your ``config/database.php`` file:
41
39
42
40
```php
43
41
/*
@@ -141,9 +139,13 @@ Run on the command line from the root of your project:
141
139
$ php artisan vendor:publish
142
140
```
143
141
144
-
Set your laravel-db2 credentials in ``app/config/db2.php``
142
+
Set your laravel-db2 credentials in ``config/db2.php``
145
143
the same way as above
146
144
145
+
### Queue Configuration
146
+
Simply set database connection driver value to ``'db2_odbc'`` in ``config/queue.php`` file:
147
+
148
+
147
149
## Usage
148
150
149
151
Consult the [Laravel framework documentation](https://laravel.com/docs).
0 commit comments