edwinfadilah / neoeloquent
Laravel wrapper for the Neo4j graph database REST interface
Installs: 6 127
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.2.0
- heydavid713/neo4jphp: 0.1.*
- illuminate/console: 6.*
- illuminate/database: 6.*
- illuminate/events: 6.*
- illuminate/pagination: 6.*
- illuminate/support: 6.*
- nesbot/carbon: ~2.0
Requires (Dev)
- mockery/mockery: 1.0
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2025-04-04 18:27:59 UTC
README
Neo4j Graph Eloquent Driver for Laravel. This is a personal-use package which is cloned from https://github.com/Vinelab/NeoEloquent.
Quick Reference
Installation
Add the package to your composer.json
and run composer update
.
Laravel 6
6.x
{ "require": { "edwinfadilah/neoeloquent": "2.0.*" } }
Laravel 5
5.8
{ "require": { "edwinfadilah/neoeloquent": "1.7.*" } }
5.7
{ "require": { "edwinfadilah/neoeloquent": "1.6.*" } }
5.6
{ "require": { "edwinfadilah/neoeloquent": "1.5.*" } }
5.5
{ "require": { "edwinfadilah/neoeloquent": "1.4.*" } }
5.4
{ "require": { "edwinfadilah/neoeloquent": "1.3.*" } }
5.3
{ "require": { "edwinfadilah/neoeloquent": "1.2.*" } }
5.2
{ "require": { "edwinfadilah/neoeloquent": "1.1.*" } }
5.1
{ "require": { "edwinfadilah/neoeloquent": "1.0.*" } }
Add the service provider in app/config/app.php
:
'EdwinFadilah\NeoEloquent\NeoEloquentServiceProvider',
The service provider will register all the required classes for this package and will also alias
the Model
class to NeoEloquent
so you can simply extend NeoEloquent
in your models.
Configuration
Connection
in app/config/database.php
or in case of an environment-based configuration app/config/[env]/database.php
make neo4j
your default connection:
'default' => 'neo4j',
Add the connection defaults:
'connections' => [ 'neo4j' => [ 'driver' => 'neo4j', 'host' => 'localhost', 'port' => '7474', 'username' => null, 'password' => null, 'ssl' => false ] ]
Migration Setup
If you're willing to have migrations:
- create the folder
app/database/labels
- modify
composer.json
and addapp/database/labels
to theclassmap
array - run
composer dump-autoload
Documentation
For further documentation information, please see it's original repository: https://github.com/Vinelab/NeoEloquent