From 04a39b00c438d6c055d1528798ea37a3b3d2a5d5 Mon Sep 17 00:00:00 2001 From: hamrahpay Date: Sun, 6 Sep 2015 12:31:52 +0430 Subject: [PATCH] Update Node.php $columns was not applicable in all() function... --- src/Baum/Node.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Baum/Node.php b/src/Baum/Node.php index 8dcab130..59edb10d 100644 --- a/src/Baum/Node.php +++ b/src/Baum/Node.php @@ -105,7 +105,7 @@ abstract class Node extends Model { * 6. (optional) "restore": After having restored a soft-deleted node, * restore all of its descendants. * - * @return void + * @return voidal */ protected static function boot() { parent::boot(); @@ -364,7 +364,7 @@ public static function all($columns = array('*')) { return $instance->newQuery() ->orderBy($instance->getQualifiedOrderColumnName()) - ->get(); + ->get($columns); } /**