Questions tagged [neoeloquent]

The Neo4j OGM (object-graph mapping) for Laravel

Neo4j Graph Eloquent Driver for Laravel.

For questions that are not suitable for the StackOverflow Q&A Format, please reach out on Slack and use the #neo4j-php channel.

Useful Links


Related tags :

30 questions
0
votes
1 answer

Update dynamically validation rules by adding new data in the controller

I'm working on a web based app,and the Tech stack is : VueJS,for the presentation layer, Laravel (PHP) for RESTFUL API service,and a nosql graph based database called neo4j. Here is the problem context, I have a model called Post, and attributes…
Christian LSANGOLA
  • 2,947
  • 4
  • 22
  • 36
0
votes
2 answers

2 ways ManyToMany relashionship working only in one side with NeoEloquent

I've 2 models User and UserGroup with ManyToMany relashionship as the following: UserGroup.php: public function users() { return $this->belongsToMany('App\User', 'IN'); } User.php public function userGroup() { return…
Christian LSANGOLA
  • 2,947
  • 4
  • 22
  • 36
0
votes
1 answer

Database [neo4j] not configured

I want to connect Lumen PHP Framework to neo4j using NeoEloquent OMG but when I execute this command: php artisan make:migration create_author_table in console appear this message: Database [neo4j] not configured. These are my…
M.Morris
  • 147
  • 1
  • 12
0
votes
1 answer

Neo4j - RESTful API POST method

I'm using Neo4j with PHP. I'm using Laravel framework and an OGM called NeoEloquent. When performing a create method to create a node, this OGM sends a post request as described in the documentation here. Is there any way to log this action as a…
Ali.Wassouf
  • 309
  • 4
  • 21
0
votes
1 answer

getting a particular data from the parent node

I am new in neoeloquent. I have created some node which has some child nodes. But I can't figure out how do I get the data of the parent node from the child node?
Soumya Rauth
  • 1,163
  • 5
  • 16
  • 32
0
votes
1 answer

Eloquent Models with relationships for lucadegasperi/oauth2-server-laravel

anyone has actual Eloquent Models for the lucadegasperi/oauth2-server-laravel package. Migrations are not very clear on the relationships, especially Many-to-Many. Not sure which side should be hasMany() vs belongsToMany(). Trying to follow the…
Azeem Michael
  • 193
  • 1
  • 4
  • 15
0
votes
1 answer

Edge of node relationated with himsef

I've just started with neo4j and NeoEloquent and I cannot get the edge (there is some important information) of a node which is related to himself. I add this relation like this: UserMode.php public function getTech () { return…
0
votes
1 answer

Laravel NeoEloquent - Dynamic relations between same node class

I'm working on a proof of concept using Laravel and Neo4j as a backend. NeoEloquent is the pefered choice for now: https://github.com/Vinelab/NeoEloquent For the moment I have a 'person' model with a hasmany relation to 'term'. This works well,…
Erhnam
  • 901
  • 2
  • 13
  • 23
0
votes
1 answer

How can I check for existence of a hyper edge in Neoeloquent?

having a defined hyperMorph method in my model and some polymorphic relationships in my Neo4j DB, I've tried these two lines for checking the existence of relationship but both return true , even when there is no a relation between the three…
Omid
  • 41
  • 5
0
votes
0 answers

working with hyperMorph relationship in NeoEloquent

I'm struggling with a polymorphic relation/hyperedge using NeoEloquent where a user mentions another user on a comment. it's like : (u1:User)-[:Mentions]-(u2:User)-[:IN]-(c:Comment) my goal is to find all comments that a given user has been…
Omid
  • 41
  • 5
0
votes
1 answer

neo4j migration in laravel doesnot work properly

I am using Neo4j in my application with /Vinelab/NeoEloquent. Now the problem is that when I run php artisan neo4j:migrate --database=neo4j , node for the migration table is created. Not any labels defined in function up() is not created. What…
reshma
  • 672
  • 8
  • 24
0
votes
1 answer

Relationship mapping with NeoEloquent

I'm tinkering with Neo4j 2.3.0 and Laravel 5.1 using NeoEloquent. I've set up a couple of dummy nodes and some relationships between them: image of Neo4j model - apologies, I cannot insert images directly yet :) So articles can use a template. The…
Kweh
  • 3
  • 1
0
votes
1 answer

Laravel 5 NeoEloquent findByProperty

Im integratting Neo4j and Laravel 5 with NeoEloquent. I cant get a node by a property, only by node id like the example: User::find(1); What I want: User::findByName('Some Name');
Santi Barbat
  • 2,097
  • 2
  • 21
  • 26
0
votes
0 answers

Login and Register app not working in laravel

I wrote a simple Login/Registration code in laravel with neo4j as DB. I installed vinelab/neoeloquent in my project, created a simple model to store the registration data in neo4j DB: app/models/Reg.php
Ajay Kulkarni
  • 2,900
  • 13
  • 48
  • 97
0
votes
1 answer

How to create unique relationship using NeoEloquent

I have just started using Laravel. I have not used Laravel Eloquent before. So I am directly using it on graph database using NeoEloquent. I know I can create relationship using hasMany() and attach() methods. But I want to create relationship only…
Sumit Patil
  • 556
  • 1
  • 5
  • 19
1
2