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
columns(Blueprint $table)

Add default nested set columns to the table. Also create an index.

static void
dropColumns(Blueprint $table)

Drop NestedSet columns.

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.

Parameters

Blueprint $table

Return Value

void

at line 51
static void dropColumns(Blueprint $table)

Drop NestedSet columns.

Parameters

Blueprint $table

Return Value

void

at line 62
static array getDefaultColumns()

Get a list of default columns.

Return Value

array

at line 70
static bool isNode(mixed $node)

Replaces instanceof calls for this trait.

Parameters

mixed $node

Return Value

bool