BelongsToMany::syncWithoutDetaching()

array syncWithoutDetaching(Collection|array $ids) Sync the intermediate tables with a list of IDs without detaching. Parameters Collection|array $ids Return Value array

BelongsToMany::touchIfTouching()

void touchIfTouching() If we're touching the parent model, touch. Return Value void

BelongsToMany::simplePaginate()

Paginator simplePaginate(int $perPage = null, array $columns = array('*'), string $pageName = 'page', int|null $page = null) Paginate the given query into a simple paginator. Parameters int $perPage array $columns string $pageName int|null $page Return Value Paginator

BelongsToMany::sync()

array sync(Collection|array $ids, bool $detaching = true) Sync the intermediate tables with a list of IDs or collection of models. Parameters Collection|array $ids bool $detaching Return Value array

BelongsToMany::saveMany()

array saveMany(Collection|array $models, array $joinings = array()) Save an array of new models and attach them to the parent model. Parameters Collection|array $models array $joinings Return Value array

BelongsToMany::relatedUpdatedAt()

string relatedUpdatedAt() Get the name of the related model's "updated at" column. Return Value string

BelongsToMany::paginate()

LengthAwarePaginator paginate(int $perPage = null, array $columns = array('*'), string $pageName = 'page', int|null $page = null) Get a paginator for the "select" statement. Parameters int $perPage array $columns string $pageName int|null $page Return Value LengthAwarePaginator

BelongsToMany::save()

Model save(Model $model, array $joining = array(), bool $touch = true) Save a new model and attach it to the parent model. Parameters Model $model array $joining bool $touch Return Value Model

BelongsToMany::rawUpdate()

int rawUpdate(array $attributes = array()) Run a raw update against the base query. Parameters array $attributes Return Value int

BelongsToMany::noConstraints()

static mixed noConstraints(Closure $callback) Run a callback with constraints disabled on the relation. Parameters Closure $callback Return Value mixed