Skip to content

Commit c7678b8

Browse files
committed
Update README.markdown
1 parent 5481254 commit c7678b8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.markdown

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,13 @@ Nodes can be provided with depth level if scope `withDepth` is applied:
120120
$nodes = Category::withDepth()->get();
121121
```
122122

123-
Query can be filtered out from the root node using scope `withoutRoot`.
123+
Query can be filtered out from the root node using scope `withoutRoot`:
124124

125-
## Insertion, re-insertion and deletion of nodes
125+
```php
126+
$nodes = Category::withoutRoot()->get();
127+
```
128+
129+
### Insertion, re-insertion and deletion of nodes
126130

127131
Operations such as insertion and deletion of nodes imply several independent queries
128132
before node is actually saved. That is why if something goes wrong, the whole tree
@@ -167,4 +171,4 @@ every node, the data of that node will always be up to date and this example wil
167171
work just fine.
168172

169173
_THIS IS THE ONLY CASE WHEN MULTIPLE NODES CAN BE INSERTED AND/OR RE-INSERTED
170-
DURING SINGLE HTTP REQUEST WITHOUT REFRESHING DATA_
174+
DURING SINGLE HTTP REQUEST WITHOUT REFRESHING DATA_

0 commit comments

Comments
 (0)