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. |
| DEPTH |
The name of default depth column. |
Properties
| static protected array<class-string, bool> | $nodeClasses | Cached node-trait membership by concrete class. |
Methods
Add integer nested set columns and indexes to the table.
Add UUID nested set columns and indexes to the table.
Add ULID nested set columns and indexes to the table.
Get a list of default columns.
Determine whether the value uses the node trait.
Flush all static state.
Details
at line 43
static void
columns(Blueprint $table, array $scopes = [])
Add bigint nested set columns and indexes to the table.
at line 53
static void
integerColumns(Blueprint $table, array $scopes = [])
Add integer nested set columns and indexes to the table.
at line 63
static void
uuidColumns(Blueprint $table, array $scopes = [])
Add UUID nested set columns and indexes to the table.
at line 73
static void
ulidColumns(Blueprint $table, array $scopes = [])
Add ULID nested set columns and indexes to the table.
at line 83
static void
dropColumns(Blueprint $table, array $scopes = [])
Drop nested set columns and indexes.
at line 94
static array
getDefaultColumns()
Get a list of default columns.
at line 102
static bool
isNode(mixed $node)
Determine whether the value uses the node trait.
at line 117
static string
structuralIdentity(Model $model)
Get the model's logical nested set table identity.
at line 127
static string
structuralDescription(Model $model)
Describe the model's logical nested set table.
at line 139
static protected string
structuralConnectionName(Model $model)
Get the model's logical connection name.
at line 151
static protected void
addBoundsAndDepth(Blueprint $table)
Add the common structural columns to the table.
at line 161
static protected void
addIndexes(Blueprint $table, array $scopes)
Add nested set indexes to the table.
at line 171
static void
flushState()
Flush all static state.