User::isUnguarded()

static bool isUnguarded() Determine if current state is "unguarded". Return Value bool

User::isGuarded()

bool isGuarded(string $key) Determine if the given key is guarded. Parameters string $key Return Value bool

User::isFillable()

bool isFillable(string $key) Determine if the given attribute may be mass assigned. Parameters string $key Return Value bool

User::isDirty()

bool isDirty(array|string|null $attributes = null) Determine if the model or given attribute(s) have been modified. Parameters array|string|null $attributes Return Value bool

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

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

User::hasSetMutator()

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

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

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

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