Model::isClean()

bool isClean(array|string|null $attributes = null) Determine if the model or given attribute(s) have remained the same. Parameters array|string|null $attributes Return Value bool

Model::is()

bool is(Model $model) Determine if two models have the same ID and belong to the same table. Parameters Model $model Return Value bool

Model::hydrateRaw()

static Collection hydrateRaw(string $query, array $bindings = array(), string|null $connection = null) Create a collection of models from a raw query. Parameters string $query array $bindings string|null $connection Return Value Collection

Model::hydrate()

static Collection hydrate(array $items, string|null $connection = null) Create a collection of models from plain arrays. Parameters array $items string|null $connection Return Value Collection

Model::hasSetMutator()

bool hasSetMutator(string $key) Determine if a set mutator exists for an attribute. Parameters string $key Return Value bool

Model::hasOne()

HasOne hasOne(string $related, string $foreignKey = null, string $localKey = null) Define a one-to-one relationship. Parameters string $related string $foreignKey string $localKey Return Value HasOne

Model::hasManyThrough()

HasManyThrough hasManyThrough(string $related, string $through, string|null $firstKey = null, string|null $secondKey = null, string|null $localKey = null) Define a has-many-through relationship. Parameters string $related string $through string|null $firstKey string|null $secondKey string|null $localKey Return Value HasManyThrough

Model::hasMany()

HasMany hasMany(string $related, string $foreignKey = null, string $localKey = null) Define a one-to-many relationship. Parameters string $related string $foreignKey string $localKey Return Value HasMany

Model::hasGlobalScope()

static bool hasGlobalScope(Scope|string $scope) Determine if a model has a global scope. Parameters Scope|string $scope Return Value bool

Model::hasGetMutator()

bool hasGetMutator(string $key) Determine if a get mutator exists for an attribute. Parameters string $key Return Value bool