MorphPivot::offsetUnset()

void offsetUnset(mixed $offset) Unset the value for a given offset. Parameters mixed $offset Return Value void

MorphPivot::offsetSet()

void offsetSet(mixed $offset, mixed $value) Set the value for a given offset. Parameters mixed $offset mixed $value Return Value void

MorphPivot::offsetGet()

mixed offsetGet(mixed $offset) Get the value for a given offset. Parameters mixed $offset Return Value mixed

MorphPivot::offsetExists()

bool offsetExists(mixed $offset) Determine if the given attribute exists. Parameters mixed $offset Return Value bool

MorphPivot::observe()

static void observe(object|string $class, int $priority) Register an observer with the Model. Parameters object|string $class int $priority Return Value void

MorphPivot::newQueryWithoutScopes()

Builder|Model newQueryWithoutScopes() Get a new query builder that doesn't have any global scopes. Return Value Builder|Model

MorphPivot::newQueryWithoutScope()

Builder newQueryWithoutScope(ScopeInterface $scope) Get a new query instance without a given scope. Parameters ScopeInterface $scope Return Value Builder

MorphPivot::newQuery()

Builder newQuery() Get a new query builder for the model's table. Return Value Builder

MorphPivot::newPivot()

Pivot newPivot(Model $parent, array $attributes, string $table, bool $exists) Create a new pivot model instance. Parameters Model $parent array $attributes string $table bool $exists Return Value Pivot

MorphPivot::newInstance()

Model newInstance(array $attributes = array(), bool $exists = false) Create a new instance of the given model. Parameters array $attributes bool $exists Return Value Model