Downloads
Stars
Version
Neo4j Graph Eloquent Driver for Laravel. This is a personal-use package which is cloned from https://github.com/Vinelab/NeoEloquent.
Add the package to your composer.json
and run composer update
.
{
"require": {
"edwinfadilah/neoeloquent": "2.0.*"
}
}
{
"require": {
"edwinfadilah/neoeloquent": "1.7.*"
}
}
{
"require": {
"edwinfadilah/neoeloquent": "1.6.*"
}
}
{
"require": {
"edwinfadilah/neoeloquent": "1.5.*"
}
}
{
"require": {
"edwinfadilah/neoeloquent": "1.4.*"
}
}
{
"require": {
"edwinfadilah/neoeloquent": "1.3.*"
}
}
{
"require": {
"edwinfadilah/neoeloquent": "1.2.*"
}
}
{
"require": {
"edwinfadilah/neoeloquent": "1.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.
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
]
]
If you're willing to have migrations:
app/database/labels
composer.json
and add app/database/labels
to the classmap
arraycomposer dump-autoload
For further documentation information, please see it's original repository: https://github.com/Vinelab/NeoEloquent