From 6c9c72107a2fe36394308b01491c5f534e54733a Mon Sep 17 00:00:00 2001 From: Rob Attfield Date: Fri, 5 May 2017 21:31:55 +1200 Subject: [PATCH] Update README.markdown Updated schema example with use statement for NestedSet class. --- README.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.markdown b/README.markdown index 08cab3e..c5578d6 100644 --- a/README.markdown +++ b/README.markdown @@ -611,6 +611,9 @@ composer require kalnoy/nestedset You can use a method to add needed columns with default names: ```php +... +use Kalnoy\Nestedset\NestedSet; + Schema::create('table', function (Blueprint $table) { ... NestedSet::columns($table); @@ -620,6 +623,9 @@ Schema::create('table', function (Blueprint $table) { To drop columns: ```php +... +use Kalnoy\Nestedset\NestedSet; + Schema::table('table', function (Blueprint $table) { NestedSet::dropColumns($table); });