#Set up a connection to ArangoDB
- Add a new database connection to
config/database.php
'arangodb' => [
'name' => 'arangodb',
'driver' => 'arangodb',
'endpoint' => env('DB_ENDPOINT', 'http://localhost:8529'),
'database' => env('DB_DATABASE'),
'username' => env('DB_USERNAME'),
'password' => env('DB_PASSWORD')
],
Provide an array of endpoints to handle failover if you have a replication set up.
- Set your default connection
DB_CONNECTION=arangodb
in your .env file.
To connect to the default ArangoDB docker image you need to set your DB_ENDPOINT to 'tcp://arangodb:8529'.