Comments (4)
Hello @gregoryduckworth, what do you mean by a custom name ?
from nestablecollection.
So instead of being 'items', the name could be changed to 'children', this would make it easier to work with packages such as the d3 graph library
from nestablecollection.
Good idea, are you ok to make a pull request with a publishable config file, so we can choose a different name ?
from nestablecollection.
You can now change the name by a method : $collection->childrenName('children')->nest();
from nestablecollection.
Related Issues (18)
- Getting a subtree is broken because items with missing ancestor are removed. HOT 1
- What is the best way to load every children of current model? HOT 3
- After Fresh install query errors
- Nest method changed HOT 5
- Have an error on calling nest() HOT 1
- List all childs of model HOT 1
- Why i should get the weird error. HOT 5
- Not worked in laravel 6.
- Private variables in NestableCollection HOT 2
- how can i change parent_id to category_id HOT 1
- listsFlattened with custom column name HOT 6
- Return nest by belongs model HOT 1
- it is not working for diffrent primary key HOT 1
- Unable to add in Laravel 9 HOT 1
- Problem with `where` clause with `LIKE` in it
- Not supporting with Laravel 10
- When an item has a parent_id that is not in the collection, this item is set at the root of the tree.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nestablecollection.