Skip to content

Commit ba6ac45

Browse files
committed
Mention l5.3 in docs
1 parent 712dabd commit ba6ac45

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

README.markdown

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
This is a Laravel 4-5 package for working with trees in relational databases.
88

9-
* **Laravel 5.2** is supported since v4
9+
* **Laravel 5.2, 5.3** is supported since v4
1010
* **Laravel 5.1** is supported in v3
1111
* **Laravel 4** is supported in v2
1212

@@ -42,7 +42,7 @@ a way to effectively store hierarchical data in a relational table. From wikiped
4242
### Applications
4343

4444
NSM shows good performance when tree is updated rarely. It is tuned to be fast for
45-
getting related nodes. It'is ideally suited for building multi-depth menu or
45+
getting related nodes. It'is ideally suited for building multi-depth menu or
4646
categories for shop.
4747

4848
Documentation
@@ -62,7 +62,7 @@ Node has following relationships that are fully functional and can be eagerly lo
6262
### Inserting nodes
6363

6464
Moving and inserting nodes includes several database queries, so __transaction is
65-
automatically started__ when node is saved. It is safe to use global transaction
65+
automatically started__ when node is saved. It is safe to use global transaction
6666
if you work with several models.
6767

6868
Another important note is that __structural manipulations are deferred__ until you
@@ -148,7 +148,7 @@ $parent->prependNode($node);
148148

149149
You can make `$node` to be a neighbor of the `$neighbor` node using following methods:
150150

151-
*`$neighbor` must exists, target node can be fresh. If target node exists,
151+
*`$neighbor` must exists, target node can be fresh. If target node exists,
152152
it will be moved to the new position and parent will be changed if it's required.*
153153

154154
```php
@@ -169,11 +169,11 @@ When using static method `create` on node, it checks whether attributes contains
169169
```php
170170
$node = Category::create([
171171
'name' => 'Foo',
172-
172+
173173
'children' => [
174174
[
175175
'name' => 'Bar',
176-
176+
177177
'children' => [
178178
[ 'name' => 'Baz' ],
179179
],
@@ -225,7 +225,7 @@ to the current category.
225225
// #1 Using accessor
226226
$result = $node->getAncestors();
227227

228-
// #2 Using a query
228+
// #2 Using a query
229229
$result = $node->ancestors()->get();
230230

231231
// #3 Getting ancestors by primary key
@@ -270,7 +270,7 @@ To get only next siblings:
270270
// Get a sibling that is immediately after the node
271271
$result = $node->getNextSibling();
272272

273-
// Get all siblings that are after the node
273+
// Get all siblings that are after the node
274274
$result = $node->getNextSiblings();
275275

276276
// Get all siblings using a query
@@ -283,7 +283,7 @@ To get previous siblings:
283283
// Get a sibling that is immediately before the node
284284
$result = $node->getPrevSibling();
285285

286-
// Get all siblings that are before the node
286+
// Get all siblings that are before the node
287287
$result = $node->getPrevSiblings();
288288

289289
// Get all siblings using a query
@@ -507,10 +507,10 @@ It will return an array with following keys:
507507
doesn't correspond to `lft` and `rgt` values
508508
- `missing_parent` -- the number of nodes that have `parent_id` pointing to
509509
node that doesn't exists
510-
510+
511511
#### Fixing tree
512512

513-
Since v3.1 tree can now be fixed. Using inheritance info from `parent_id` column,
513+
Since v3.1 tree can now be fixed. Using inheritance info from `parent_id` column,
514514
proper `_lft` and `_rgt` values are set for every node.
515515

516516
```php
@@ -521,7 +521,7 @@ Node::fixTree();
521521

522522
Imagine you have `Menu` model and `MenuItems`. There is a one-to-many relationship
523523
set up between these models. `MenuItem` has `menu_id` attribute for joining models
524-
together. `MenuItem` incorporates nested sets. It is obvious that you would want to
524+
together. `MenuItem` incorporates nested sets. It is obvious that you would want to
525525
process each tree separately based on `menu_id` attribute. In order to do so, you
526526
need to specify this attribute as scope attribute:
527527

@@ -541,7 +541,7 @@ MenuItem::descendantsOf($id)->get(); // WRONG: returns nodes from other scope
541541
MenuItem::scoped([ 'menu_id' => 5 ])->fixTree();
542542
```
543543

544-
When requesting nodes using model instance, scopes applied automatically based
544+
When requesting nodes using model instance, scopes applied automatically based
545545
on the attributes of that model. See examples:
546546

547547
```php
@@ -556,7 +556,7 @@ To get scoped query builder using instance:
556556
$node->newScopedQuery();
557557
```
558558

559-
Note, that scoping is not required when retrieving model by primary key
559+
Note, that scoping is not required when retrieving model by primary key
560560
(since the key is unique):
561561

562562
```php
@@ -570,7 +570,7 @@ Requirements
570570
- PHP >= 5.4
571571
- Laravel >= 4.1
572572

573-
It is highly suggested to use database that supports transactions (like MySql's InnoDb)
573+
It is highly suggested to use database that supports transactions (like MySql's InnoDb)
574574
to secure a tree from possible corruption.
575575

576576
Installation
@@ -654,7 +654,7 @@ $table->unsignedInteger('_lft');
654654
$table->unsignedInteger('_rgt');
655655
```
656656

657-
After [setting up your model](#the-model) you only need to fix the tree to fill
657+
After [setting up your model](#the-model) you only need to fix the tree to fill
658658
`_lft` and `_rgt` columns:
659659

660660
```php

0 commit comments

Comments
 (0)