Methods |
public
|
orderByDepth($direction = 'asc')
|
#
|
public
|
upToDepth($depth)
|
#
|
public
|
excludingSelf()
|
#
|
public
|
includingSelf()
|
#
|
protected
|
migratePivotAttributes(Model $model): array
Get the pivot attributes from a model.
Get the pivot attributes from a model.
Overrides
|
#
|
protected
|
readOnly()
|
#
|
public
|
save(Model $model, array $pivotAttributes = [], $touch = true)
Save a new model and attach it to the parent model.
Save a new model and attach it to the parent model.
Overrides
|
#
|
public
|
saveMany($models, array $pivotAttributes = [])
Save an array of new models and attach them to the parent model.
Save an array of new models and attach them to the parent model.
Overrides
|
#
|
public
|
create(array $attributes = [], array $joining = [], $touch = true)
Create a new instance of the related model.
Create a new instance of the related model.
Overrides
|
#
|
public
|
createMany(iterable $records, array $joinings = [])
Create an array of new instances of the related models.
Create an array of new instances of the related models.
Overrides
|
#
|
public
|
toggle($ids, $touch = true)
|
#
|
public
|
syncWithoutDetaching($ids)
|
#
|
public
|
sync($ids, $detaching = true)
|
#
|
public
|
attach($id, array $attributes = [], $touch = true)
|
#
|
public
|
detach($ids = null, $touch = true)
|
#
|