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 - Access the RethinkDB Administration Console [http://localhost:8090/#tables](http://localhost:8090/#tables) for create a database called `database`.
1374
+
1375
+
3 - Add the RethinkDB configurations to the `config/database.php` configuration file:
1376
+
1377
+
```php
1378
+
'connections' => [
1379
+
1380
+
'rethinkdb' => [
1381
+
'name' => 'rethinkdb',
1382
+
'driver' => 'rethinkdb',
1383
+
'host' => env('DB_HOST', 'rethinkdb'),
1384
+
'port' => env('DB_PORT', 28015),
1385
+
'database' => env('DB_DATABASE', 'test'),
1386
+
]
1387
+
1388
+
// ...
1389
+
1390
+
],
1391
+
```
1392
+
1393
+
4 - Open your Laravel's `.env` file and update the following variables:
1394
+
1395
+
- set the `DB_CONNECTION` to your `rethinkdb`.
1396
+
- set the `DB_HOST` to `rethinkdb`.
1397
+
- set the `DB_PORT` to `28015`.
1398
+
- set the `DB_DATABASE` to `database`.
1399
+
1359
1400
<br>
1360
1401
<aname="debugging"></a>
1361
1402
@@ -1504,6 +1545,7 @@ For special help with Docker and/or Laravel, you can schedule a live call with t
0 commit comments