Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
633 stars 197 forks source link

Added support for selecting the database #354

Closed mrbig closed 2 years ago

mrbig commented 2 years ago

Seems like there is no way of selecting the neo4j database despite the underlying connection driver supporting it.

This small changes will make it possible to specify a database other from the default neo4j.

Also I noticed that there is a possibly unused protected $database property that maybe served similar purpose. Could that be removed as well?

Mulkave commented 2 years ago

@mrbig thanks for this! I suppose the protected $database is for backward compatibility with Eloquent so as long as it's harmless there we can keep it. Even though I agree it could be misleading.