string updatedAt() Get the name of the "updated at" column. Return Value string
void touchIfTouching() If we're touching the parent model, touch. Return Value void
void touch() Touch all of the related models for the relationship. E.g.: Touch all roles associated with this user. Return Value void
array syncWithoutDetaching(Collection|array $ids) Sync the intermediate tables with a list of IDs without detaching. Parameters Collection|array $ids Return Value array
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
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
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
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
string relatedUpdatedAt() Get the name of the related model's "updated at" column. Return Value string
int rawUpdate(array $attributes = array()) Run a raw update against the base query. Parameters array $attributes Return Value int
Page 405 of 996