We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b868b70 commit ea3ea6eCopy full SHA for ea3ea6e
README.md
@@ -474,7 +474,7 @@ Retrieving a complete tree hierarchy into a regular `Collection` object with
474
its children *properly nested* is as simple as:
475
476
```php
477
-$tree = Category::where('name', '=', Books)->first()->getDescendantsAndSelf()->toHierarchy();
+$tree = Category::where('name', '=', 'Books')->first()->getDescendantsAndSelf()->toHierarchy();
478
```
479
480
<a name="node-model-events"></a>
0 commit comments