Skip to content

Commit ab6d8ef

Browse files
committed
docs: update Couchbase connection configuration format in README
1 parent eddacfe commit ab6d8ef

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,15 @@ If you are running this quickstart with a self-managed Couchbase cluster, you ne
276276

277277
You need to update the connection string and the credentials in the `config/couchbase.php` file:
278278

279-
```env
280-
DB_CONN_STR_=couchbase://<your-couchbase-server>
281-
DB_USERNAME=<your-username>
282-
DB_PASSWORD=<your-password>
283-
DB_BUCKET=travel-sample
279+
```php
280+
281+
<?php
282+
return [
283+
'host' => env('DB_CONN_STR', 'couchbase://<your-couchbase-server>'),
284+
'username' => env('DB_USERNAME', '<your-username>'),
285+
'password' => env('DB_PASSWORD', '<your-password>'),
286+
'bucket' => env('DB_BUCKET', 'travel-sample'),
287+
];
284288
```
285289

286290
Replace `<your-couchbase-server>`, `<your-username>`, and `<your-password>` with your actual Couchbase server details and credentials.

0 commit comments

Comments
 (0)