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
The RethinkDB is an open-source Database for Real-time Web ([RethinkDB](https://rethinkdb.com/)).
1365
+
A package ([Laravel RethinkDB](https://github.com/duxet/laravel-rethinkdb)) is being developed and was released a version for Laravel 5.2 (experimental).
1366
+
1367
+
1 - Run the RethinkDB Container (`rethinkdb`) with the `docker-compose up` command.
1368
+
1369
+
```bash
1370
+
docker-compose up -d rethinkdb
1371
+
```
1372
+
1373
+
2 - Add the RethinkDB configurations to the `config/database.php` configuration file:
1374
+
1375
+
```php
1376
+
'connections' => [
1377
+
1378
+
'rethinkdb' => [
1379
+
'name' => 'rethinkdb',
1380
+
'driver' => 'rethinkdb',
1381
+
'host' => env('DB_HOST', 'rethinkdb'),
1382
+
'port' => env('DB_PORT', 28015),
1383
+
'database' => env('DB_DATABASE', 'test'),
1384
+
]
1385
+
1386
+
// ...
1387
+
1388
+
],
1389
+
```
1390
+
1391
+
3 - Open your Laravel's `.env` file and update the following variables:
1392
+
1393
+
- set the `DB_CONNECTION` to your `rethinkdb`.
1394
+
- set the `DB_HOST` to `rethinkdb`.
1395
+
- set the `DB_PORT` to `28015`.
1396
+
- set the `DB_DATABASE` to `database`.
1397
+
1359
1398
<br>
1360
1399
<aname="debugging"></a>
1361
1400
@@ -1504,6 +1543,7 @@ For special help with Docker and/or Laravel, you can schedule a live call with t
0 commit comments