NestedSet
class NestedSet
Constants
| LFT |
The name of default lft column. |
| RGT |
The name of default rgt column. |
| PARENT_ID |
The name of default parent id column. |
| BEFORE |
Insert direction. |
| AFTER |
Insert direction. |
Methods
static void
static void
static array
getDefaultColumns()
Get a list of default columns.
static bool
isNode(mixed $node)
Replaces instanceof calls for this trait.
Details
at line 39
static void
columns(Blueprint $table)
Add default nested set columns to the table. Also create an index.
at line 51
static void
dropColumns(Blueprint $table)
Drop NestedSet columns.
at line 62
static array
getDefaultColumns()
Get a list of default columns.
at line 70
static bool
isNode(mixed $node)
Replaces instanceof calls for this trait.