MorphToMany::updatedAt()

string updatedAt() Get the name of the "updated at" column. Return Value string

MorphToMany::touchIfTouching()

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

MorphToMany::touch()

void touch() Touch all of the related models for the relationship. E.g.: Touch all roles associated with this user. Return Value void

MorphToMany::syncWithoutDetaching()

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

MorphToMany::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

MorphToMany::simplePaginate()

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

MorphToMany::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

MorphToMany::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

MorphToMany::relatedUpdatedAt()

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

MorphToMany::rawUpdate()

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