Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme example doesnt work in 6.1.1 #246

Open
sooxt98 opened this issue Feb 21, 2021 · 2 comments
Open

Readme example doesnt work in 6.1.1 #246

sooxt98 opened this issue Feb 21, 2021 · 2 comments

Comments

@sooxt98
Copy link

sooxt98 commented Feb 21, 2021

Result for the default structure: parent_id null for all rows ! I tried laravel 6 & 8 and diff Clousure table version, its all same problem

only createFromArray works fine, which gives parent_id

image

nodes

image

node_closure

image

@sooxt98
Copy link
Author

sooxt98 commented Feb 21, 2021

I think this is due to Laravel 8 moving all the app models into models subdirectory

@sooxt98 sooxt98 changed the title Something wrong with v6.1.1 and its not working at all Something wrong with v6.1.1 and Laravel8 its not working at all Feb 21, 2021
@sooxt98 sooxt98 changed the title Something wrong with v6.1.1 and Laravel8 its not working at all Readme example doesnt work in 6.1.1 Feb 22, 2021
@penerbangkode
Copy link

penerbangkode commented Aug 19, 2023

You can add fillable in your node model to allow insert column parent_id
for example :
protected $fillable = [ 'position', 'parent_id' ];

Or you can use my PR : #257

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants