You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+9-7
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@
3
3
Baum is an implementation of the [Nested Set](http://en.wikipedia.org/wiki/Nested_set_model)
4
4
pattern for [Laravel 5's](http://laravel.com/) Eloquent ORM.
5
5
6
+
For **Laravel 4.2.x compatibility**, check the [1.0.x branch](https://github.com/etrepat/baum/tree/1.0.x-stable) branch or use the latest [1.0.x tagged release](https://github.com/etrepat/baum/releases).
7
+
6
8
## Documentation
7
9
8
10
*[About Nested Sets](#about)
@@ -91,18 +93,18 @@ ordinary trees are suddenly quite fast. Nifty, isn't it?
91
93
<aname="installation"></a>
92
94
## Installation
93
95
94
-
Baum works with Laravel 4 onwards. You can add it to your `composer.json` file
96
+
Baum works with Laravel 5 onwards. You can add it to your `composer.json` file
95
97
with:
96
98
97
-
"baum/baum": "~1.0"
99
+
"baum/baum": "~1.1"
98
100
99
101
Run `composer install` to install it.
100
102
101
-
As with most Laravel 4 packages you'll then need to register the Baum
102
-
*service provider*. To do that, head over your `app/config/app.php` file and add
103
+
As with most Laravel 5 packages you'll then need to register the Baum
104
+
*service provider*. To do that, head over your `config/app.php` file and add
103
105
the following line into the `providers` array:
104
106
105
-
'Baum\BaumServiceProvider',
107
+
'Baum\Providers\BaumServiceProvider',
106
108
107
109
<aname="getting-started"></a>
108
110
## Getting started
@@ -329,7 +331,7 @@ You can ask some questions to your Baum nodes:
329
331
*`isAncestorOf($other)`: Returns true if node is an ancestor of the other.
330
332
*`isSelfOrAncestorOf($other)`: Returns true if node is self or an ancestor.
331
333
*`equals($node)`: current node instance equals the other.
332
-
*`insideSubtree($node)`: Checks wether the given node is inside the subtree
334
+
*`insideSubtree($node)`: Checks whether the given node is inside the subtree
333
335
defined by the left and right indices.
334
336
*`inSameScope($node)`: Returns true if the given node is in the same scope
335
337
as the current one. That is, if *every* column in the `scoped` property has
@@ -472,7 +474,7 @@ Retrieving a complete tree hierarchy into a regular `Collection` object with
0 commit comments