Methods |
public
static
|
bootHasOrderableRelationships()
|
#
|
public
|
belongsToManyOrderable(
string $related,
string $orderColumn = 'position',
string $table = null,
string $foreignPivotKey = null,
string $relatedPivotKey = null,
string $parentKey = null,
string $relatedKey = null,
string $relation = null,
): BelongsToSortedMany
Define a many-to-many orderable relationship.
The prototype is similar as the belongsToMany method, with the
…
Define a many-to-many orderable relationship.
The prototype is similar as the belongsToMany method, with the
$orderColumn added as the 2nd parameter.
|
#
|
public
|
belongsToManyOrdered(
$related,
$orderColumn = 'position',
$table = null,
$foreignPivotKey = null,
$relatedPivotKey = null,
$parentKey = null,
$relatedKey = null,
$relation = null,
)
|
#
|
public
|
morphToManyOrderable(
string $related,
string $name,
$orderColumn = 'position',
string $table = null,
string $foreignPivotKey = null,
string $relatedPivotKey = null,
string $parentKey = null,
string $relatedKey = null,
bool $inverse = false,
): MorphToManyOrderable
Define a polymorphic orderable many-to-many relationship.
Define a polymorphic orderable many-to-many relationship.
|
#
|
public
|
morphToManyOrdered(
$related,
$name,
$orderColumn = 'position',
$table = null,
$foreignPivotKey = null,
$relatedPivotKey = null,
$parentKey = null,
$relatedKey = null,
$inverse = false,
)
|
#
|
public
|
morphedByManyOrderable(
string $related,
string $name,
string $orderColumn = 'position',
string $table = null,
string $foreignPivotKey = null,
string $relatedPivotKey = null,
string $parentKey = null,
string $relatedKey = null,
): MorphToManyOrderable
Define a polymorphic, inverse, orderable many-to-many relationship.
The prototype is similar as the morphedByMany…
Define a polymorphic, inverse, orderable many-to-many relationship.
The prototype is similar as the morphedByMany method, with the
$orderColumn added as the 3rd parameter.
|
#
|
public
|
morphedByManyOrdered(
$related,
$name,
$orderColumn = 'position',
$table = null,
$foreignPivotKey = null,
$relatedPivotKey = null,
$parentKey = null,
$relatedKey = null,
)
|
#
|