Backend\Models\User

Source: ~/modules/backend/models/User.php

Extends:

Implements:

  • Illuminate\Contracts\Routing\UrlRoutable
  • Illuminate\Contracts\Queue\QueueableEntity
  • JsonSerializable
  • Illuminate\Contracts\Support\Jsonable
  • Illuminate\Contracts\Support\Arrayable
  • ArrayAccess

Administrator user model

Public properties

public $rules

Validation rules

public $belongsToMany

Relations

public $belongsTo

protected $belongsTo = [ 'parent' => ['Category', 'key' => 'parent_id'] ];

public $attachOne

protected $attachOne = [ 'picture' => ['October\Rain\Database\Attach\File', 'public' => false] ];

public static string $loginAttribute

Login attribute

Show inherited public properties

Inherited public properties

  • public array $attributeNames - defined in October\Rain\Auth\Models\User. The array of custom attribute names.
  • public array $customMessages - defined in October\Rain\Auth\Models\User. The array of custom error messages.
  • public array $implement - defined in October\Rain\Database\Model. Behaviors implemented by this model.
  • public array $attributes - defined in October\Rain\Database\Model. Make the model's attributes public so behaviors can modify them.
  • public bool $duplicateCache - defined in October\Rain\Database\Model. Indicates if duplicate queries from this model should be cached in memory.
  • public bool $incrementing - defined in Illuminate\Database\Eloquent\Model. Indicates if the IDs are auto-incrementing.
  • public bool $exists - defined in Illuminate\Database\Eloquent\Model. Indicates if the model exists.
  • public bool $wasRecentlyCreated - defined in Illuminate\Database\Eloquent\Model. Indicates if the model was inserted during the current request lifecycle.
  • public static bool $snakeAttributes - defined in Illuminate\Database\Eloquent\Model. Indicates whether attributes are snake cased on arrays.
  • public static array $manyMethods - defined in Illuminate\Database\Eloquent\Model. The many to many relationship methods.
  • public bool $timestamps - defined in Illuminate\Database\Eloquent\Model. Indicates if the model should be timestamped.
  • public array $hasMany - defined in October\Rain\Database\Model. Cleaner declaration of relationships.
  • public $hasOne - defined in October\Rain\Database\Model. protected $hasOne = [.
  • public $morphTo - defined in October\Rain\Database\Model. protected $morphTo = [.
  • public $morphOne - defined in October\Rain\Database\Model. protected $morphOne = [.
  • public $morphMany - defined in October\Rain\Database\Model. protected $morphMany = [.
  • public $morphToMany - defined in October\Rain\Database\Model. protected $morphToMany = [.
  • public $morphedByMany - defined in October\Rain\Database\Model.
  • public $attachMany - defined in October\Rain\Database\Model. protected $attachMany = [.
  • public $hasManyThrough - defined in October\Rain\Database\Model. protected $attachMany = [.
  • public string $sessionKey - defined in October\Rain\Database\Model. A unique session key used for deferred binding.

Protected properties

protected string $table

The database table used by the model.

protected $purgeable

Purge attributes from data set.

Show inherited protected properties

Inherited protected properties

  • protected array $dates - defined in October\Rain\Auth\Models\User. The attributes that should be mutated to dates.
  • protected array $hidden - defined in October\Rain\Auth\Models\User. The attributes that should be hidden for arrays.
  • protected array $guarded - defined in October\Rain\Auth\Models\User. The attributes that aren't mass assignable.
  • protected array $hashable - defined in October\Rain\Auth\Models\User. List of attribute names which should be hashed using the Bcrypt hashing algorithm.
  • protected array $jsonable - defined in October\Rain\Auth\Models\User. List of attribute names which are json encoded and decoded from the database.
  • protected array $allowedPermissionsValues - defined in October\Rain\Auth\Models\User. Allowed permissions values.
  • protected array $mergedPermissions - defined in October\Rain\Auth\Models\User. The user merged permissions.
  • protected static array $eventsBooted - defined in October\Rain\Database\Model. The array of models booted events.
  • protected string $connection - defined in Illuminate\Database\Eloquent\Model. The connection name for the model.
  • protected string $primaryKey - defined in Illuminate\Database\Eloquent\Model. The primary key for the model.
  • protected string $keyType - defined in Illuminate\Database\Eloquent\Model. The "type" of the auto-incrementing ID.
  • protected array $with - defined in Illuminate\Database\Eloquent\Model. The relations to eager load on every query.
  • protected array $withCount - defined in Illuminate\Database\Eloquent\Model. The relationship counts that should be eager loaded on every query.
  • protected int $perPage - defined in Illuminate\Database\Eloquent\Model. The number of models to return for pagination.
  • protected static Illuminate\Database\ConnectionResolverInterface $resolver - defined in Illuminate\Database\Eloquent\Model. The connection resolver instance.
  • protected static Illuminate\Contracts\Events\Dispatcher $dispatcher - defined in Illuminate\Database\Eloquent\Model. The event dispatcher instance.
  • protected static array $booted - defined in Illuminate\Database\Eloquent\Model. The array of booted models.
  • protected static array $globalScopes - defined in Illuminate\Database\Eloquent\Model. The array of global scopes on the model.
  • protected array $original - defined in Illuminate\Database\Eloquent\Model. The model attribute's original state.
  • protected array $changes - defined in Illuminate\Database\Eloquent\Model. The changed model attributes.
  • protected array $casts - defined in Illuminate\Database\Eloquent\Model. The attributes that should be cast to native types.
  • protected string $dateFormat - defined in Illuminate\Database\Eloquent\Model. The storage format of the model's date columns.
  • protected array $appends - defined in Illuminate\Database\Eloquent\Model. The accessors to append to the model's array form.
  • protected static array $mutatorCache - defined in Illuminate\Database\Eloquent\Model. The cache of the mutated attributes for each class.
  • protected array $dispatchesEvents - defined in Illuminate\Database\Eloquent\Model. The event map for the model.
  • protected array $observables - defined in Illuminate\Database\Eloquent\Model. User exposed observable events.
  • protected array $relations - defined in Illuminate\Database\Eloquent\Model. The loaded relationships for the model.
  • protected array $touches - defined in Illuminate\Database\Eloquent\Model. The relationships that should be touched on save.
  • protected array $visible - defined in Illuminate\Database\Eloquent\Model. The attributes that should be visible in serialization.
  • protected array $fillable - defined in Illuminate\Database\Eloquent\Model. The attributes that are mass assignable.
  • protected static bool $unguarded - defined in Illuminate\Database\Eloquent\Model. Indicates if all mass assignment is enabled.
  • protected static array $relationTypes - defined in October\Rain\Database\Model. Excepted relationship types, used to cycle and verify relationships.
  • protected array $emitterSingleEventCollection - defined in October\Rain\Database\Model. Collection of registered events to be fired once only.
  • protected array $emitterEventCollection - defined in October\Rain\Database\Model. Collection of registered events.
  • protected array $emitterEventSorted - defined in October\Rain\Database\Model. Sorted collection of events.
  • protected array $extensionData - defined in October\Rain\Database\Model. Class reflection information, including behaviors.
  • protected static array $extendableCallbacks - defined in October\Rain\Database\Model. Used to extend the constructor of an extendable class.
  • protected static array $extendableStaticMethods - defined in October\Rain\Database\Model. Collection of static methods used by behaviors.
  • protected static bool $extendableGuardProperties - defined in October\Rain\Database\Model. Indicates if dynamic properties can be created.
  • protected October\Rain\Database\Collection $deferredBindingCache - defined in October\Rain\Database\Model. Deferred binding lookup cache.
  • protected array $originalHashableValues - defined in October\Rain\Auth\Models\User. List of original attribute values before they were hashed.
  • protected array $originalPurgeableValues - defined in October\Rain\Auth\Models\User. List of original attribute values before they were purged.
  • protected Illuminate\Support\MessageBag $validationErrors - defined in October\Rain\Auth\Models\User. The message bag instance containing validation error messages.

Public methods

public void afterCreate()

After create event

public void afterLogin()

After login event

public void getAvatarThumb($size=25, $options=NULL)

Returns the public image file path to this user's avatar.

Parameters
  • $size
  • $options

public string getFullNameAttribute()

public void getGroupsOptions()

public string getPersistCode()

Gets a code for when the user is persisted to a cookie or session which identifies the user.

public void getRoleOptions()

public void sendInvitation()

Sends an invitation to the user using template "backend::mail.invite".

Show inherited public methods

Inherited public methods

  • public void __call($name, $params) - defined in October\Rain\Database\Model.
  • public static mixed __callStatic(string $method, array $parameters) - defined in Illuminate\Database\Eloquent\Model. Handle dynamic static method calls into the method.
  • public void __construct($attributes=array()) - defined in October\Rain\Database\Model. Constructor.
  • public void __get($name) - defined in October\Rain\Database\Model.
  • public bool __isset(string $key) - defined in October\Rain\Database\Model. Determine if an attribute or relation exists on the model.
  • public void __set($name, $value) - defined in October\Rain\Database\Model.
  • public string __toString() - defined in Illuminate\Database\Eloquent\Model. Convert the model to its string representation.
  • public void __unset(string $key) - defined in Illuminate\Database\Eloquent\Model. Unset an attribute on the model.
  • public void __wakeup() - defined in Illuminate\Database\Eloquent\Model. When a model is being unserialized, check if it needs to be booted.
  • public void addDateAttribute(string $attribute) - defined in October\Rain\Database\Model. Adds a datetime attribute to convert to an instance of Carbon/DateTime object.
  • public void addDynamicMethod(string $dynamicName, callable $method, string $extension=NULL) - defined in October\Rain\Database\Model. Programatically adds a method to the extendable class.
  • public void addDynamicProperty(string $dynamicName, string $value=NULL) - defined in October\Rain\Database\Model. Programatically adds a property to the extendable class.
  • public void addFillable(array|string|null $attributes=NULL) - defined in October\Rain\Database\Model. Add fillable attributes for the model.
  • public static mixed addGlobalScope(Illuminate\Database\Eloquent\Scope|\Closure|string $scope, Closure|null $implementation=NULL) - defined in Illuminate\Database\Eloquent\Model. Register a new global scope on the model.
  • public bool addGroup(Group $group) - defined in October\Rain\Auth\Models\User. Adds the user to the given group.
  • public $this addHashable(array|string|null $attributes=NULL) - defined in October\Rain\Auth\Models\User. Adds an attribute to the hashable attributes list.
  • public void addHashableAttribute($attribute) - defined in October\Rain\Auth\Models\User.
  • public void addHidden(array|string|null $attributes=NULL) - defined in Illuminate\Database\Eloquent\Model. Add hidden attributes for the model.
  • public void addJsonable(array|string|null $attributes=NULL) - defined in October\Rain\Database\Model. Add jsonable attributes for the model.
  • public void addObservableEvents(array|mixed $observables) - defined in Illuminate\Database\Eloquent\Model. Add an observable event name.
  • public $this addPurgeable(array|string|null $attributes=NULL) - defined in October\Rain\Auth\Models\User. Adds an attribute to the purgeable attributes list.
  • public void addVisible(array|string|null $attributes=NULL) - defined in Illuminate\Database\Eloquent\Model. Add visible attributes for the model.
  • public bool afterDelete() - defined in October\Rain\Auth\Models\User. Delete the user groups.
  • public static Illuminate\Database\Eloquent\Collection|static[] all(array|mixed $columns=array( 0=>'*')) - defined in Illuminate\Database\Eloquent\Model. Get all of the models from the database.
  • public bool alwaysPush(array $options, string $sessionKey) - defined in October\Rain\Database\Model. Pushes the first level of relations even if the parent.
  • public $this append(array|string $attributes) - defined in Illuminate\Database\Eloquent\Model. Append attributes to query when building a query.
  • public mixed asExtension(string $shortName) - defined in October\Rain\Database\Model. Short hand for getClassExtension() method, except takes the short.
  • public October\Rain\Database\Relations\MorphMany attachMany($related, $isPublic=NULL, $localKey=NULL, $relationName=NULL) - defined in October\Rain\Database\Model. Define an attachment one-to-many relationship.
  • public October\Rain\Database\Relations\MorphOne attachOne($related, $isPublic=true, $localKey=NULL, $relationName=NULL) - defined in October\Rain\Database\Model. Define an attachment one-to-one relationship.
  • public bool attemptActivation(string $activationCode) - defined in October\Rain\Auth\Models\User. Attempts to activate the given user by checking the activate code. If the user is activated already, an Exception is thrown.
  • public bool attemptResetPassword(string $resetCode, string $newPassword) - defined in October\Rain\Auth\Models\User. Attempts to reset a user's password by matching the reset code generated with the user's.
  • public array attributesToArray() - defined in October\Rain\Database\Model. Convert the model's attributes to an array.
  • public void beforeLogin() - defined in October\Rain\Auth\Models\User.
  • public October\Rain\Database\Relations\BelongsTo belongsTo($related, $foreignKey=NULL, $parentKey=NULL, $relationName=NULL) - defined in October\Rain\Database\Model. Define an inverse one-to-one or many relationship.
  • public October\Rain\Database\Relations\BelongsToMany belongsToMany($related, $table=NULL, $primaryKey=NULL, $foreignKey=NULL, $parentKey=NULL, $relatedKey=NULL, $relationName=NULL) - defined in October\Rain\Database\Model. Define a many-to-many relationship.
  • public void bindDeferred($relation, $record, $sessionKey) - defined in October\Rain\Database\Model. Bind a deferred relationship to the supplied record.
  • public self bindEvent($event, $callback, $priority=0) - defined in October\Rain\Database\Model. Create a new event binding.
  • public self bindEventOnce($event, $callback) - defined in October\Rain\Database\Model. Create a new event binding that fires once only.
  • public static void bootHashable() - defined in October\Rain\Auth\Models\User. Boot the hashable trait for a model.
  • public static void bootPurgeable() - defined in October\Rain\Auth\Models\User. Boot the purgeable trait for a model.
  • public static void bootValidation() - defined in October\Rain\Auth\Models\User. Boot the validation trait for this model.
  • public static void cacheMutatedAttributes(string $class) - defined in Illuminate\Database\Eloquent\Model. Extract and cache all the mutated attributes of a class.
  • public void cancelDeferred($sessionKey) - defined in October\Rain\Database\Model. Cancel all deferred bindings to this model.
  • public bool checkHashValue(string $key, string $value) - defined in October\Rain\Auth\Models\User. Checks if the supplied plain value matches the stored hash value.
  • public bool checkPassword(string $password) - defined in October\Rain\Auth\Models\User. Checks the password passed matches the user's password.
  • public bool checkPersistCode(string $persistCode) - defined in October\Rain\Auth\Models\User. Checks the given persist code.
  • public bool checkResetPasswordCode(string $resetCode) - defined in October\Rain\Auth\Models\User. Checks if the provided user reset password code is valid without actually resetting the password.
  • public static void clearBootedModels() - defined in Illuminate\Database\Eloquent\Model. Clear the list of booted models so they will be re-booted.
  • public static void clearExtendedClasses() - defined in October\Rain\Database\Model. Clear the list of extended classes so they will be re-extended.
  • public void clearResetPassword() - defined in October\Rain\Auth\Models\User. Wipes out the data associated with resetting a password.
  • public void commitDeferred($sessionKey) - defined in October\Rain\Database\Model. Commit all deferred bindings to this model.
  • public static Illuminate\Database\Eloquent\Model|static create(array $attributes=array(), string $sessionKey=NULL) - defined in October\Rain\Database\Model. Save a new model and return the instance.
  • public static void created(Closure|string $callback) - defined in Illuminate\Database\Eloquent\Model. Register a created model event with the dispatcher.
  • public static void creating(Closure|string $callback) - defined in Illuminate\Database\Eloquent\Model. Register a creating model event with the dispatcher.
  • public bool|null delete() - defined in Illuminate\Database\Eloquent\Model. Delete the model from the database.
  • public static void deleted(Closure|string $callback) - defined in Illuminate\Database\Eloquent\Model. Register a deleted model event with the dispatcher.
  • public static void deleting(Closure|string $callback) - defined in Illuminate\Database\Eloquent\Model. Register a deleting model event with the dispatcher.
  • public static int destroy(array|int $ids) - defined in Illuminate\Database\Eloquent\Model. Destroy the models for the given IDs.
  • public Illuminate\Support\MessageBag errors() - defined in October\Rain\Auth\Models\User. Get validation error message collection for the Model.
  • public static void extend($callback) - defined in October\Rain\Database\Model. Extend this object properties upon construction.
  • public void extendClassWith(string $extensionName) - defined in October\Rain\Database\Model. Dynamically extend a class with a specified behavior.
  • public mixed extendableCall(string $name, array $params=NULL) - defined in October\Rain\Database\Model. Magic method for __call().
  • public static mixed extendableCallStatic(string $name, array $params=NULL) - defined in October\Rain\Database\Model. Magic method for __callStatic().
  • public void extendableConstruct() - defined in October\Rain\Database\Model. This method should be called as part of the constructor.
  • public static void extendableExtendCallback(callable $callback) - defined in October\Rain\Database\Model. Helper method for ::extend() static method.
  • public string extendableGet(string $name) - defined in October\Rain\Database\Model. Magic method for __get().
  • public string extendableSet(string $name, string $value) - defined in October\Rain\Database\Model. Magic method for __set().
  • public static void fetched(Closure|string $callback) - defined in October\Rain\Database\Model. Create a new native event for handling afterFetch().
  • public static void fetching(Closure|string $callback) - defined in October\Rain\Database\Model. Create a new native event for handling beforeFetch().
  • public $this fill(array $attributes) - defined in Illuminate\Database\Eloquent\Model. Fill the model with an array of attributes.
  • public $this fillJsonAttribute(string $key, mixed $value) - defined in Illuminate\Database\Eloquent\Model. Set a given JSON attribute on the model.
  • public $this fillable(array $fillable) - defined in Illuminate\Database\Eloquent\Model. Set the fillable attributes for the model.
  • public array fireEvent(string $event, array $params=array(), boolean $halt=false) - defined in October\Rain\Database\Model. Fire an event and call the listeners.
  • public static void flushDuplicateCache() - defined in October\Rain\Database\Model. Flush the memory cache.
  • public static void flushEventListeners() - defined in October\Rain\Database\Model. Remove all of the event listeners for the model.
  • public bool|null forceDelete() - defined in Illuminate\Database\Eloquent\Model. Force a hard delete on a soft deleted model.
  • public $this forceFill(array $attributes) - defined in Illuminate\Database\Eloquent\Model. Fill the model with an array of attributes. Force mass assignment.
  • public bool forceSave($options=NULL, $sessionKey=NULL) - defined in October\Rain\Auth\Models\User. Force save the model even if validation fails.
  • public static|null fresh(array|string $with=array()) - defined in Illuminate\Database\Eloquent\Model. Reload a fresh model instance from the database.
  • public October\Rain\Argon\Argon freshTimestamp() - defined in October\Rain\Database\Model. Get a fresh timestamp for the model.
  • public string freshTimestampString() - defined in Illuminate\Database\Eloquent\Model. Get a fresh timestamp for the model.
  • public string fromDateTime(DateTime|int $value) - defined in October\Rain\Database\Model. Convert a DateTime to a storable string.
  • public mixed fromJson(string $value, bool $asObject=false) - defined in Illuminate\Database\Eloquent\Model. Decode the given JSON back into an array or object.
  • public string getActivationCode() - defined in October\Rain\Auth\Models\User. Get an activation code for the given user.
  • public static string getActualClassNameForMorph(string $class) - defined in Illuminate\Database\Eloquent\Model. Retrieve the actual class name for a given morph class.
  • public mixed getAttribute($key) - defined in October\Rain\Database\Model. Get an attribute from the model.
  • public mixed getAttributeValue(string $key) - defined in October\Rain\Database\Model. Get a plain attribute (not a relationship).
  • public array getAttributes() - defined in Illuminate\Database\Eloquent\Model. Get all of the current attributes on the model.
  • public mixed getAuthIdentifier() - defined in October\Rain\Auth\Models\User. Get the unique identifier for the user.
  • public string getAuthPassword() - defined in October\Rain\Auth\Models\User. Get the password for the user.
  • public array getCasts() - defined in Illuminate\Database\Eloquent\Model. Get the casts array.
  • public array getChanges() - defined in Illuminate\Database\Eloquent\Model. Get the attributes that was changed.
  • public mixed getClassExtension(string $name) - defined in October\Rain\Database\Model. Returns a behavior object from an extendable class, example:.
  • public Illuminate\Database\Connection getConnection() - defined in Illuminate\Database\Eloquent\Model. Get the database connection for the model.
  • public string getConnectionName() - defined in Illuminate\Database\Eloquent\Model. Get the current connection name for the model.
  • public static Illuminate\Database\ConnectionResolverInterface getConnectionResolver() - defined in Illuminate\Database\Eloquent\Model. Get the connection resolver instance.
  • public string getCreatedAtColumn() - defined in Illuminate\Database\Eloquent\Model. Get the name of the "created at" column.
  • public array getDates() - defined in Illuminate\Database\Eloquent\Model. Get the attributes that should be converted to dates.
  • public array getDirty() - defined in Illuminate\Database\Eloquent\Model. Get the attributes that have been changed since last sync.
  • public static Illuminate\Contracts\Events\Dispatcher getEventDispatcher() - defined in Illuminate\Database\Eloquent\Model. Get the event dispatcher instance.
  • public array getFillable() - defined in Illuminate\Database\Eloquent\Model. Get the fillable attributes for the model.
  • public string getForeignKey() - defined in Illuminate\Database\Eloquent\Model. Get the default foreign key name for the model.
  • public static Illuminate\Database\Eloquent\Scope|\Closure|null getGlobalScope(Illuminate\Database\Eloquent\Scope|string $scope) - defined in Illuminate\Database\Eloquent\Model. Get a global scope registered with the model.
  • public array getGlobalScopes() - defined in Illuminate\Database\Eloquent\Model. Get the global scopes for this class instance.
  • public array getGroups() - defined in October\Rain\Auth\Models\User. Returns an array of groups which the given user belongs to.
  • public array getGuarded() - defined in Illuminate\Database\Eloquent\Model. Get the guarded attributes for the model.
  • public array getHashableAttributes() - defined in October\Rain\Auth\Models\User. Returns a collection of fields that will be hashed.
  • public array getHidden() - defined in Illuminate\Database\Eloquent\Model. Get the hidden attributes for the model.
  • public bool getIncrementing() - defined in Illuminate\Database\Eloquent\Model. Get the value indicating whether the IDs are incrementing.
  • public bool getIsActivatedAttribute(mixed $activated) - defined in October\Rain\Auth\Models\User. Get mutator for giving the activated property.
  • public array getJsonable() - defined in October\Rain\Database\Model. Get the jsonable attributes name.
  • public mixed getKey() - defined in Illuminate\Database\Eloquent\Model. Get the value of the model's primary key.
  • public string getKeyName() - defined in Illuminate\Database\Eloquent\Model. Get the primary key for the model.
  • public string getKeyType() - defined in Illuminate\Database\Eloquent\Model. Get the auto-incrementing key type.
  • public mixed getLogin() - defined in October\Rain\Auth\Models\User. Returns returns the user's login.
  • public string getLoginName() - defined in October\Rain\Auth\Models\User. Returns returns the name for the user's login.
  • public array getMergedPermissions() - defined in October\Rain\Auth\Models\User. Returns an array of merged permissions for each group the user is in.
  • public string getMorphClass() - defined in Illuminate\Database\Eloquent\Model. Get the class name for polymorphic relations.
  • public array getMutatedAttributes() - defined in Illuminate\Database\Eloquent\Model. Get the mutated attributes for a given instance.
  • public array getObservableEvents() - defined in October\Rain\Database\Model. Get the observable event names.
  • public mixed|array getOriginal(string|null $key=NULL, mixed $default=NULL) - defined in Illuminate\Database\Eloquent\Model. Get the model's original attribute values.
  • public mixed getOriginalHashValue($attribute) - defined in October\Rain\Auth\Models\User. Returns the original values of any hashed attributes.
  • public array getOriginalHashValues() - defined in October\Rain\Auth\Models\User. Returns the original values of any hashed attributes.
  • public void getOriginalPurgeValue($attribute) - defined in October\Rain\Auth\Models\User. Returns the original values of any purged attributes.
  • public void getOriginalPurgeValues() - defined in October\Rain\Auth\Models\User. Returns the original values of any purged attributes.
  • public int getPerPage() - defined in Illuminate\Database\Eloquent\Model. Get the number of models to return per page.
  • public void getPurgeableAttributes() - defined in October\Rain\Auth\Models\User. Returns a collection of fields that will be hashed.
  • public string getQualifiedKeyName() - defined in Illuminate\Database\Eloquent\Model. Get the table qualified key name.
  • public mixed getQueueableConnection() - defined in Illuminate\Database\Eloquent\Model. Get the queueable connection for the entity.
  • public mixed getQueueableId() - defined in Illuminate\Database\Eloquent\Model. Get the queueable identity for the entity.
  • public string getRandomString($length=42) - defined in October\Rain\Auth\Models\User. Generate a random string.
  • public mixed getRelation(string $relation) - defined in Illuminate\Database\Eloquent\Model. Get a specified relationship.
  • public array getRelationDefinition(string $name) - defined in October\Rain\Database\Model. Returns relationship details from a supplied name.
  • public array getRelationDefinitions() - defined in October\Rain\Database\Model. Returns relationship details for all relations defined on this model.
  • public string getRelationType(string $name) - defined in October\Rain\Database\Model. Returns a relationship type based on a supplied name.
  • public void getRelationValue($relationName) - defined in October\Rain\Database\Model. Returns a relation key value(s), not as an object.
  • public array getRelations() - defined in Illuminate\Database\Eloquent\Model. Get all the loaded relations for the instance.
  • public string getRememberToken() - defined in October\Rain\Auth\Models\User. Get the token value for the "remember me" session.
  • public string getRememberTokenName() - defined in October\Rain\Auth\Models\User. Get the column name for the "remember me" token.
  • public string getReminderEmail() - defined in October\Rain\Auth\Models\User. Get the e-mail address where password reminders are sent.
  • public string getResetPasswordCode() - defined in October\Rain\Auth\Models\User. Get a reset password code for the given user.
  • public October\Rain\Auth\Models\Role getRole() - defined in October\Rain\Auth\Models\User. Returns the role assigned to this user.
  • public mixed getRouteKey() - defined in Illuminate\Database\Eloquent\Model. Get the value of the model's route key.
  • public string getRouteKeyName() - defined in Illuminate\Database\Eloquent\Model. Get the route key for the model.
  • public string getTable() - defined in Illuminate\Database\Eloquent\Model. Get the table associated with the model.
  • public array getTouchedRelations() - defined in Illuminate\Database\Eloquent\Model. Get the relationships that are touched on save.
  • public string getUpdatedAtColumn() - defined in Illuminate\Database\Eloquent\Model. Get the name of the "updated at" column.
  • public array getVisible() - defined in Illuminate\Database\Eloquent\Model. Get the visible attributes for the model.
  • public $this guard(array $guarded) - defined in Illuminate\Database\Eloquent\Model. Set the guarded attributes for the model.
  • public bool hasAccess(string|array $permissions, bool $all=true) - defined in October\Rain\Auth\Models\User. See if a user has access to the passed permission(s).
  • public bool hasAnyAccess(array $permissions) - defined in October\Rain\Auth\Models\User. Returns if the user has access to any of the given permissions.
  • public bool hasCast(string $key, array|string|null $types=NULL) - defined in Illuminate\Database\Eloquent\Model. Determine whether an attribute should be cast to a native type.
  • public bool hasGetMutator(string $key) - defined in October\Rain\Database\Model. Determine if a get mutator exists for an attribute.
  • public static bool hasGlobalScope(Illuminate\Database\Eloquent\Scope|string $scope) - defined in Illuminate\Database\Eloquent\Model. Determine if a model has a global scope.
  • public October\Rain\Database\Relations\HasMany hasMany($related, $primaryKey=NULL, $localKey=NULL, $relationName=NULL) - defined in October\Rain\Database\Model. Define a one-to-many relationship.
  • public October\Rain\Database\Relations\HasMany hasManyThrough($related, $through, $primaryKey=NULL, $throughKey=NULL, $localKey=NULL, $secondLocalKey=NULL, $relationName=NULL) - defined in October\Rain\Database\Model. Define a has-many-through relationship.
  • public October\Rain\Database\Relations\HasOne hasOne($related, $primaryKey=NULL, $localKey=NULL, $relationName=NULL) - defined in October\Rain\Database\Model. Define a one-to-one relationship.
  • public bool hasPermission(string|array $permissions, bool $all=true) - defined in October\Rain\Auth\Models\User. See if a user has access to the passed permission(s).
  • public bool hasRelation(string $name) - defined in October\Rain\Database\Model. Checks if model has a relationship by supplied name.
  • public bool hasSetMutator(string $key) - defined in October\Rain\Database\Model. Determine if a set mutator exists for an attribute.
  • public bool inGroup(Group $group) - defined in October\Rain\Auth\Models\User. See if the user is in the given group.
  • public bool is(Illuminate\Database\Eloquent\Model|null $model) - defined in Illuminate\Database\Eloquent\Model. Determine if two models have the same ID and belong to the same table.
  • public boolean isAttributeRequired(string $attribute) - defined in October\Rain\Auth\Models\User. Determines if an attribute is required based on the validation rules.
  • public boolean isClassExtendedWith(string $name) - defined in October\Rain\Database\Model. Check if extendable class is extended with a behavior object.
  • public bool isClean(array|string|null $attributes=NULL) - defined in Illuminate\Database\Eloquent\Model. Determine if the model or given attribute(s) have remained the same.
  • public void isDeferrable($relationName) - defined in October\Rain\Database\Model. Returns true if a relation exists and can be deferred.
  • public bool isDirty(array|string|null $attributes=NULL) - defined in Illuminate\Database\Eloquent\Model. Determine if the model or given attribute(s) have been modified.
  • public bool isFillable(string $key) - defined in Illuminate\Database\Eloquent\Model. Determine if the given attribute may be mass assigned.
  • public bool isGuarded(string $key) - defined in Illuminate\Database\Eloquent\Model. Determine if the given key is guarded.
  • public array isJsonable($key) - defined in October\Rain\Database\Model. Checks if an attribute is jsonable or not.
  • public bool isNot(Illuminate\Database\Eloquent\Model|null $model) - defined in Illuminate\Database\Eloquent\Model. Determine if two models are not the same.
  • public boolean isRelationPushable(string $name) - defined in October\Rain\Database\Model. Determines whether the specified relation should be saved.
  • public bool isSuperUser() - defined in October\Rain\Auth\Models\User. Checks if the user is a super user - has access to everything regardless of permissions.
  • public static bool isUnguarded() - defined in Illuminate\Database\Eloquent\Model. Determine if current state is "unguarded".
  • public string joiningTable(string $related) - defined in Illuminate\Database\Eloquent\Model. Get the joining table name for a many-to-many relation.
  • public array jsonSerialize() - defined in Illuminate\Database\Eloquent\Model. Convert the object into something JSON serializable.
  • public $this jsonable(array $jsonable) - defined in October\Rain\Database\Model. Set the jsonable attributes for the model.
  • public $this load(array|string $relations) - defined in Illuminate\Database\Eloquent\Model. Eager load relations on the model.
  • public $this loadMissing(array|string $relations) - defined in Illuminate\Database\Eloquent\Model. Eager load relations on the model if they are not already eager loaded.
  • public static Illuminate\Database\Eloquent\Model|static make(array $attributes=array()) - defined in October\Rain\Database\Model. Create a new model and return the instance.
  • public string makeHashValue(string $key, string $value) - defined in October\Rain\Auth\Models\User. Hashes an attribute value and saves it in the original locker.
  • public $this makeHidden(array|string $attributes) - defined in Illuminate\Database\Eloquent\Model. Make the given, typically visible, attributes hidden.
  • public string makeRelation(string $name) - defined in October\Rain\Database\Model. Returns a relation class object.
  • public $this makeVisible(array|string $attributes) - defined in Illuminate\Database\Eloquent\Model. Make the given, typically hidden, attributes visible.
  • public boolean methodExists(string $name) - defined in October\Rain\Database\Model. Checks if a method exists, extension equivalent of method_exists().
  • public October\Rain\Database\Relations\MorphMany morphMany($related, $name, $type=NULL, $id=NULL, $localKey=NULL, $relationName=NULL) - defined in October\Rain\Database\Model. Define a polymorphic one-to-many relationship.
  • public October\Rain\Database\Relations\MorphOne morphOne($related, $name, $type=NULL, $id=NULL, $localKey=NULL, $relationName=NULL) - defined in October\Rain\Database\Model. Define a polymorphic one-to-one relationship.
  • public October\Rain\Database\Relations\BelongsTo morphTo($name=NULL, $type=NULL, $id=NULL) - defined in October\Rain\Database\Model. Define an polymorphic, inverse one-to-one or many relationship.
  • public October\Rain\Database\Relations\MorphToMany morphToMany($related, $name, $table=NULL, $primaryKey=NULL, $foreignKey=NULL, $parentKey=NULL, $relatedKey=NULL, $inverse=false, $relationName=NULL) - defined in October\Rain\Database\Model. Define a polymorphic many-to-many relationship.
  • public October\Rain\Database\Relations\MorphToMany morphedByMany($related, $name, $table=NULL, $primaryKey=NULL, $foreignKey=NULL, $parentKey=NULL, $relatedKey=NULL, $relationName=NULL) - defined in October\Rain\Database\Model. Define a polymorphic many-to-many inverse relationship.
  • public October\Rain\Database\Collection newCollection(array $models=array()) - defined in October\Rain\Database\Model. Create a new Model Collection instance.
  • public October\Rain\Database\Builder|static newEloquentBuilder(October\Rain\Database\QueryBuilder $query) - defined in October\Rain\Database\Model. Create a new Eloquent query builder for the model.
  • public Illuminate\Database\Eloquent\Model|static newFromBuilder(array $attributes=array(), $connection=NULL) - defined in October\Rain\Database\Model. Create a new model instance that is existing.
  • public static newInstance(array $attributes=array(), bool $exists=false) - defined in Illuminate\Database\Eloquent\Model. Create a new instance of the given model.
  • public October\Rain\Database\Pivot newPivot(October\Rain\Database\Model $parent, array $attributes, string $table, bool $exists, string|null $using=NULL) - defined in October\Rain\Database\Model. Create a generic pivot model instance.
  • public Illuminate\Database\Eloquent\Builder newQuery() - defined in Illuminate\Database\Eloquent\Model. Get a new query builder for the model's table.
  • public Illuminate\Database\Eloquent\Builder newQueryForRestoration(array|int $ids) - defined in Illuminate\Database\Eloquent\Model. Get a new query to restore one or more models by their queueable IDs.
  • public Illuminate\Database\Eloquent\Builder newQueryWithoutRelationships() - defined in Illuminate\Database\Eloquent\Model. Get a new query builder with no relationships loaded.
  • public Illuminate\Database\Eloquent\Builder newQueryWithoutScope(Illuminate\Database\Eloquent\Scope|string $scope) - defined in Illuminate\Database\Eloquent\Model. Get a new query instance without a given scope.
  • public Illuminate\Database\Eloquent\Builder|static newQueryWithoutScopes() - defined in Illuminate\Database\Eloquent\Model. Get a new query builder that doesn't have any global scopes.
  • public October\Rain\Database\Pivot newRelationPivot(October\Rain\Database\Model $parent, string $relationName, array $attributes, string $table, bool $exists) - defined in October\Rain\Database\Model. Create a pivot model instance specific to a relation.
  • public static void observe(object|string $class) - defined in Illuminate\Database\Eloquent\Model. Register an observer with the Model.
  • public bool offsetExists(mixed $offset) - defined in October\Rain\Database\Model. This a custom piece of logic specifically to satisfy Twig's.
  • public mixed offsetGet(mixed $offset) - defined in Illuminate\Database\Eloquent\Model. Get the value for a given offset.
  • public void offsetSet(mixed $offset, mixed $value) - defined in Illuminate\Database\Eloquent\Model. Set the value for a given offset.
  • public void offsetUnset(mixed $offset) - defined in Illuminate\Database\Eloquent\Model. Unset the value for a given offset.
  • public static Illuminate\Database\Eloquent\Builder on(string|null $connection=NULL) - defined in Illuminate\Database\Eloquent\Model. Begin querying the model on a given connection.
  • public static Illuminate\Database\Query\Builder onWriteConnection() - defined in Illuminate\Database\Eloquent\Model. Begin querying the model on the write connection.
  • public array only(array|mixed $attributes) - defined in Illuminate\Database\Eloquent\Model. Get a subset of the model's attributes.
  • public boolean propertyExists(string $name) - defined in October\Rain\Database\Model. Checks if a property exists, extension equivalent of property_exists().
  • public array purgeAttributes($attributes $attributesToPurge=NULL) - defined in October\Rain\Auth\Models\User. Removes purged attributes from the dataset, used before saving.
  • public bool push(array $options=NULL, null $sessionKey=NULL) - defined in October\Rain\Database\Model. Save the model and all of its relationships.
  • public static Illuminate\Database\Eloquent\Builder query() - defined in Illuminate\Database\Eloquent\Model. Begin querying the model.
  • public $this refresh() - defined in Illuminate\Database\Eloquent\Model. Reload the current model instance with fresh attributes from the database.
  • public Illuminate\Database\Eloquent\Builder registerGlobalScopes(Illuminate\Database\Eloquent\Builder $builder) - defined in Illuminate\Database\Eloquent\Model. Register the global scopes for this builder instance.
  • public static void reguard() - defined in Illuminate\Database\Eloquent\Model. Enable the mass assignment restrictions.
  • public bool relationLoaded(string $key) - defined in Illuminate\Database\Eloquent\Model. Determine if the given relation is loaded.
  • public array relationsToArray() - defined in Illuminate\Database\Eloquent\Model. Get the model's relationships in array form.
  • public Illuminate\Database\Eloquent\Model|static reload() - defined in October\Rain\Database\Model. Reloads the model attributes from the database.
  • public void reloadRelations(string $relationName=NULL) - defined in October\Rain\Database\Model. Reloads the model relationship cache.
  • public bool removeGroup(Group $group) - defined in October\Rain\Auth\Models\User. Removes the user from the given group.
  • public void removeObservableEvents(array|mixed $observables) - defined in Illuminate\Database\Eloquent\Model. Remove an observable event name.
  • public Illuminate\Database\Eloquent\Model replicate(array|null $except=NULL) - defined in Illuminate\Database\Eloquent\Model. Clone the model into a new, non-existing instance.
  • public static Illuminate\Database\Connection resolveConnection(string|null $connection=NULL) - defined in Illuminate\Database\Eloquent\Model. Resolve a connection instance.
  • public Illuminate\Database\Eloquent\Model|null resolveRouteBinding(mixed $value) - defined in Illuminate\Database\Eloquent\Model. Retrieve the model for a bound value.
  • public void restorePurgedValues() - defined in October\Rain\Auth\Models\User. Restores the original values of any purged attributes.
  • public static void retrieved(Closure|string $callback) - defined in Illuminate\Database\Eloquent\Model. Register a retrieved model event with the dispatcher.
  • public bool save(array $options=NULL, null $sessionKey=NULL) - defined in October\Rain\Database\Model. Save the model to the database.
  • public bool saveOrFail(array $options=array()) - defined in Illuminate\Database\Eloquent\Model. Save the model to the database using transaction.
  • public static void saved(Closure|string $callback) - defined in Illuminate\Database\Eloquent\Model. Register a saved model event with the dispatcher.
  • public static void saving(Closure|string $callback) - defined in Illuminate\Database\Eloquent\Model. Register a saving model event with the dispatcher.
  • public $this setAppends(array $appends) - defined in Illuminate\Database\Eloquent\Model. Set the accessors to append to model arrays.
  • public void setAttribute(string $key, mixed $value) - defined in October\Rain\Database\Model. Set a given attribute on the model.
  • public $this setConnection(string $name) - defined in Illuminate\Database\Eloquent\Model. Set the connection associated with the model.
  • public static void setConnectionResolver(Illuminate\Database\ConnectionResolverInterface $resolver) - defined in Illuminate\Database\Eloquent\Model. Set the connection resolver instance.
  • public $this setCreatedAt(mixed $value) - defined in Illuminate\Database\Eloquent\Model. Set the value of the "created at" attribute.
  • public $this setDateFormat(string $format) - defined in Illuminate\Database\Eloquent\Model. Set the date format used by the model.
  • public static void setEventDispatcher(Illuminate\Contracts\Events\Dispatcher $dispatcher) - defined in Illuminate\Database\Eloquent\Model. Set the event dispatcher instance.
  • public $this setHidden(array $hidden) - defined in Illuminate\Database\Eloquent\Model. Set the hidden attributes for the model.
  • public $this setIncrementing(bool $value) - defined in Illuminate\Database\Eloquent\Model. Set whether IDs are incrementing.
  • public $this setKeyName(string $key) - defined in Illuminate\Database\Eloquent\Model. Set the primary key for the model.
  • public $this setKeyType(string $type) - defined in Illuminate\Database\Eloquent\Model. Set the data type for the primary key.
  • public $this setObservableEvents(array $observables) - defined in Illuminate\Database\Eloquent\Model. Set the observable event names.
  • public void setPasswordAttribute($value) - defined in October\Rain\Auth\Models\User. Protects the password from being reset to null.
  • public $this setPerPage(int $perPage) - defined in Illuminate\Database\Eloquent\Model. Set the number of models to return per page.
  • public void setPermissionsAttribute(array $permissions) - defined in October\Rain\Auth\Models\User. Validate any set permissions.
  • public $this setRawAttributes(array $attributes, bool $sync=false) - defined in Illuminate\Database\Eloquent\Model. Set the array of model attributes. No checking is done.
  • public $this setRelation(string $relation, mixed $value) - defined in Illuminate\Database\Eloquent\Model. Set the specific relationship in the model.
  • public $this setRelations(array $relations) - defined in Illuminate\Database\Eloquent\Model. Set the entire relations array on the model.
  • public void setRememberToken(string $value) - defined in October\Rain\Auth\Models\User. Set the token value for the "remember me" session.
  • public $this setTable(string $table) - defined in Illuminate\Database\Eloquent\Model. Set the table associated with the model.
  • public $this setTouchedRelations(array $touches) - defined in Illuminate\Database\Eloquent\Model. Set the relationships that are touched on save.
  • public $this setUpdatedAt(mixed $value) - defined in Illuminate\Database\Eloquent\Model. Set the value of the "updated at" attribute.
  • public $this setVisible(array $visible) - defined in Illuminate\Database\Eloquent\Model. Set the visible attributes for the model.
  • public $this syncChanges() - defined in Illuminate\Database\Eloquent\Model. Sync the changed attributes.
  • public $this syncOriginal() - defined in Illuminate\Database\Eloquent\Model. Sync the original attributes with the current.
  • public $this syncOriginalAttribute(string $attribute) - defined in Illuminate\Database\Eloquent\Model. Sync a single original attribute with its current value.
  • public array toArray() - defined in Illuminate\Database\Eloquent\Model. Convert the model instance to an array.
  • public string toJson(int $options=0) - defined in Illuminate\Database\Eloquent\Model. Convert the model instance to JSON.
  • public bool totallyGuarded() - defined in Illuminate\Database\Eloquent\Model. Determine if the model is totally guarded.
  • public bool touch() - defined in Illuminate\Database\Eloquent\Model. Update the model's update timestamp.
  • public void touchOwners() - defined in Illuminate\Database\Eloquent\Model. Touch the owning relations of the model.
  • public bool touches(string $relation) - defined in Illuminate\Database\Eloquent\Model. Determine if the model touches a given relation.
  • public void unbindDeferred($relation, $record, $sessionKey) - defined in October\Rain\Database\Model. Unbind a deferred relationship to the supplied record.
  • public self unbindEvent(string $event=NULL) - defined in October\Rain\Database\Model. Destroys an event binding.
  • public static void unguard(bool $state=true) - defined in Illuminate\Database\Eloquent\Model. Disable all mass assignable restrictions.
  • public static mixed unguarded(callable $callback) - defined in Illuminate\Database\Eloquent\Model. Run the given callable while being unguarded.
  • public static void unsetConnectionResolver() - defined in Illuminate\Database\Eloquent\Model. Unset the connection resolver for models.
  • public static void unsetEventDispatcher() - defined in Illuminate\Database\Eloquent\Model. Unset the event dispatcher for models.
  • public bool update(array $attributes=array(), array $options=array()) - defined in Illuminate\Database\Eloquent\Model. Update the model in the database.
  • public static void updated(Closure|string $callback) - defined in Illuminate\Database\Eloquent\Model. Register an updated model event with the dispatcher.
  • public static void updating(Closure|string $callback) - defined in Illuminate\Database\Eloquent\Model. Register an updating model event with the dispatcher.
  • public bool usesTimestamps() - defined in Illuminate\Database\Eloquent\Model. Determine if the model uses timestamps.
  • public bool validate($rules=NULL, $customMessages=NULL, $attributeNames=NULL) - defined in October\Rain\Auth\Models\User. Validate the model instance.
  • public static void validated(Closure|string $callback) - defined in October\Rain\Auth\Models\User. Create a new native event for handling afterValidate().
  • public static void validating(Closure|string $callback) - defined in October\Rain\Auth\Models\User. Create a new native event for handling beforeValidate().
  • public bool wasChanged(array|string|null $attributes=NULL) - defined in Illuminate\Database\Eloquent\Model. Determine if the model or given attribute(s) have been modified.
  • public static Illuminate\Database\Eloquent\Builder|static with(array|string $relations) - defined in Illuminate\Database\Eloquent\Model. Begin querying a model with eager loading.

Protected methods

Show inherited protected methods

Inherited protected methods

  • protected array addCastAttributesToArray(array $attributes, array $mutatedAttributes) - defined in Illuminate\Database\Eloquent\Model. Add the casted attributes to the attributes array.
  • protected array addDateAttributesToArray(array $attributes) - defined in Illuminate\Database\Eloquent\Model. Add the date attributes to the attributes array.
  • protected array addMutatedAttributesToArray(array $attributes, array $mutatedAttributes) - defined in Illuminate\Database\Eloquent\Model. Add the mutated attributes to the attributes array.
  • protected Illuminate\Support\Carbon asDate(mixed $value) - defined in Illuminate\Database\Eloquent\Model. Return a timestamp as DateTime object with time set to 00:00:00.
  • protected Carbon\Carbon asDateTime(mixed $value) - defined in October\Rain\Database\Model. Return a timestamp as DateTime object.
  • protected string asJson(mixed $value) - defined in Illuminate\Database\Eloquent\Model. Encode the given value as JSON.
  • protected int asTimestamp(mixed $value) - defined in Illuminate\Database\Eloquent\Model. Return a timestamp as unix timestamp.
  • protected static void boot() - defined in Illuminate\Database\Eloquent\Model. The "booting" method of the model.
  • protected void bootIfNotBooted() - defined in Illuminate\Database\Eloquent\Model. Check if the model needs to be booted and if so, do it.
  • protected void bootNicerEvents() - defined in October\Rain\Database\Model. Bind some nicer events to this model, in the format of method overrides.
  • protected static void bootTraits() - defined in Illuminate\Database\Eloquent\Model. Boot all of the bootable traits on the model.
  • protected mixed castAttribute(string $key, mixed $value) - defined in Illuminate\Database\Eloquent\Model. Cast an attribute to a native PHP type.
  • protected string castAttributeAsJson(string $key, mixed $value) - defined in Illuminate\Database\Eloquent\Model. Cast the given attribute to JSON.
  • protected void commitDeferredAfter($sessionKey) - defined in October\Rain\Database\Model. Internally used method to commit all deferred bindings after saving.
  • protected void commitDeferredBefore($sessionKey) - defined in October\Rain\Database\Model. Internally used method to commit all deferred bindings before saving.
  • protected void commitDeferredOfType($sessionKey, $include=NULL, $exclude=NULL) - defined in October\Rain\Database\Model. Internal method for commiting deferred relations.
  • protected int decrement(string $column, int $amount=1, array $extra=array()) - defined in Illuminate\Database\Eloquent\Model. Decrement a column's value by a given amount.
  • protected array emitterEventSortEvents(string $eventName) - defined in October\Rain\Database\Model. Sort the listeners for a given event by priority.
  • protected boolean extendableIsAccessible(mixed $class, string $propertyName) - defined in October\Rain\Database\Model. Checks if a property is accessible, property equivalent of is_callabe().
  • protected void extensionExtractMethods(string $extensionName, object $extensionObject) - defined in October\Rain\Database\Model. Extracts the available methods from a behavior and adds it to the.
  • protected array fillableFromArray(array $attributes) - defined in Illuminate\Database\Eloquent\Model. Get the fillable attributes of a given array.
  • protected mixed filterModelEventResults(mixed $result) - defined in Illuminate\Database\Eloquent\Model. Filter the model event results.
  • protected void finishSave(array $options) - defined in Illuminate\Database\Eloquent\Model. Perform any actions that are necessary after the model is saved.
  • protected mixed|null fireCustomModelEvent(string $event, string $method) - defined in Illuminate\Database\Eloquent\Model. Fire a custom model event for the given event.
  • protected mixed fireModelEvent(string $event, bool $halt=true) - defined in Illuminate\Database\Eloquent\Model. Fire the given event for the model.
  • protected array getArrayAttributeByKey(string $key) - defined in Illuminate\Database\Eloquent\Model. Get an array attribute or return an empty array if it is not set.
  • protected $this getArrayAttributeWithValue(string $path, string $key, mixed $value) - defined in Illuminate\Database\Eloquent\Model. Get an array attribute with the given key and value set.
  • protected array getArrayableAppends() - defined in Illuminate\Database\Eloquent\Model. Get all of the appendable values that are arrayable.
  • protected array getArrayableAttributes() - defined in Illuminate\Database\Eloquent\Model. Get an attribute array of all arrayable attributes.
  • protected array getArrayableItems(array $values) - defined in Illuminate\Database\Eloquent\Model. Get an attribute array of all arrayable values.
  • protected array getArrayableRelations() - defined in Illuminate\Database\Eloquent\Model. Get an attribute array of all arrayable relations.
  • protected mixed getAttributeFromArray(string $key) - defined in Illuminate\Database\Eloquent\Model. Get an attribute from the $attributes array.
  • protected string getCastType(string $key) - defined in Illuminate\Database\Eloquent\Model. Get the type of cast for a model attribute.
  • protected string getDateFormat() - defined in Illuminate\Database\Eloquent\Model. Get the format for database stored dates.
  • protected array getDeferrableRelationTypes() - defined in October\Rain\Database\Model. Returns all possible relation types that can be deferred.
  • protected October\Rain\Database\Collection getDeferredBindingRecords($sessionKey, $force=false) - defined in October\Rain\Database\Model. Returns any outstanding binding records for this model.
  • protected mixed getKeyForSaveQuery() - defined in Illuminate\Database\Eloquent\Model. Get the primary key value for a save query.
  • protected array getMorphs(string $name, string $type, string $id) - defined in Illuminate\Database\Eloquent\Model. Get the polymorphic relationship columns.
  • protected static array getMutatorMethods(mixed $class) - defined in Illuminate\Database\Eloquent\Model. Get all of the attribute mutator methods.
  • protected void getRelationCaller() - defined in October\Rain\Database\Model. Finds the calling function name from the stack trace.
  • protected array getRelationDefaults(string $type) - defined in October\Rain\Database\Model. Returns default relation arguments for a given type.
  • protected void getRelationValidationValue($relationName) - defined in October\Rain\Auth\Models\User. Attachments validate differently to their simple values.
  • protected mixed getRelationshipFromMethod(string $method) - defined in Illuminate\Database\Eloquent\Model. Get a relationship value from a method.
  • protected array getValidationAttributes() - defined in October\Rain\Auth\Models\User. Returns the model data used for validation.
  • protected string guessBelongsToManyRelation() - defined in Illuminate\Database\Eloquent\Model. Get the relationship name of the belongs to many.
  • protected string guessBelongsToRelation() - defined in Illuminate\Database\Eloquent\Model. Guess the "belongs to" relationship name.
  • protected Illuminate\Database\Eloquent\Relations\Relation handleRelation(string $relationName) - defined in October\Rain\Database\Model. Looks for the relation and does the correct magic as Eloquent would require.
  • protected bool hasChanges(array $changes, array|string|null $attributes=NULL) - defined in Illuminate\Database\Eloquent\Model. Determine if the given attributes were changed.
  • protected int increment(string $column, int $amount=1, array $extra=array()) - defined in Illuminate\Database\Eloquent\Model. Increment a column's value by a given amount.
  • protected int incrementOrDecrement(string $column, int $amount, array $extra, string $method) - defined in Illuminate\Database\Eloquent\Model. Run the increment or decrement method on the model.
  • protected void incrementOrDecrementAttributeValue(string $column, int $amount, array $extra, string $method) - defined in Illuminate\Database\Eloquent\Model. Increment the underlying attribute value and sync with original.
  • protected void insertAndSetId(Illuminate\Database\Eloquent\Builder $query, array $attributes) - defined in Illuminate\Database\Eloquent\Model. Insert the given attributes and set the ID on the model.
  • protected bool isDateAttribute(string $key) - defined in Illuminate\Database\Eloquent\Model. Determine if the given attribute is a date or date castable.
  • protected bool isDateCastable(string $key) - defined in Illuminate\Database\Eloquent\Model. Determine whether a value is Date / DateTime castable for inbound manipulation.
  • protected bool isJsonCastable(string $key) - defined in Illuminate\Database\Eloquent\Model. Determine whether a value is JSON castable for inbound manipulation.
  • protected bool isStandardDateFormat(string $value) - defined in Illuminate\Database\Eloquent\Model. Determine if the given value is a standard date format.
  • protected static Illuminate\Validation\Validator makeValidator($data, $rules, $customMessages, $attributeNames, $connection=NULL) - defined in October\Rain\Auth\Models\User. Instantiates the validator used by the validation process, depending if the class.
  • protected Illuminate\Database\Eloquent\Relations\MorphTo morphEagerTo(string $name, string $type, string $id) - defined in October\Rain\Database\Model. Define a polymorphic, inverse one-to-one or many relationship.
  • protected Illuminate\Database\Eloquent\Relations\MorphTo morphInstanceTo(string $target, string $name, string $type, string $id) - defined in October\Rain\Database\Model. Define a polymorphic, inverse one-to-one or many relationship.
  • protected mixed mutateAttribute(string $key, mixed $value) - defined in Illuminate\Database\Eloquent\Model. Get the value of an attribute using its mutator.
  • protected mixed mutateAttributeForArray(string $key, mixed $value) - defined in Illuminate\Database\Eloquent\Model. Get the value of an attribute using its mutator for array conversion.
  • protected October\Rain\Database\QueryBuilder newBaseQueryBuilder() - defined in October\Rain\Database\Model. Get a new query builder instance for the connection.
  • protected mixed newRelatedInstance(string $class) - defined in Illuminate\Database\Eloquent\Model. Create a new model instance for a related model.
  • protected bool originalIsEquivalent(string $key, mixed $current) - defined in Illuminate\Database\Eloquent\Model. Determine if the new and old values for a given key are equivalent.
  • protected void performDeleteOnModel() - defined in October\Rain\Database\Model. Perform the actual delete query on this model instance.
  • protected void performDeleteOnRelations() - defined in October\Rain\Database\Model. Locates relations with delete flag and cascades the delete event.
  • protected bool performInsert(Illuminate\Database\Eloquent\Builder $query) - defined in Illuminate\Database\Eloquent\Model. Perform a model insert operation.
  • protected bool performUpdate(Illuminate\Database\Eloquent\Builder $query) - defined in Illuminate\Database\Eloquent\Model. Perform a model update operation.
  • protected void processValidationRules($rules) - defined in October\Rain\Auth\Models\User. Process rules.
  • protected string processValidationUniqueRule(string $definition, string $fieldName) - defined in October\Rain\Auth\Models\User. Rebuilds the unique validation rule to force for the existing ID.
  • protected static void registerModelEvent(string $event, Closure|string $callback) - defined in Illuminate\Database\Eloquent\Model. Register a model event with the dispatcher.
  • protected string removeTableFromKey(string $key) - defined in Illuminate\Database\Eloquent\Model. Remove the table name from a given key.
  • protected bool saveInternal(array $options=array()) - defined in October\Rain\Database\Model. Save the model to the database. Is used by {@link save()} and {@link forceSave()}.
  • protected string serializeDate(DateTimeInterface $date) - defined in Illuminate\Database\Eloquent\Model. Prepare a date for array / JSON serialization.
  • protected Illuminate\Database\Eloquent\Builder setKeysForSaveQuery(Illuminate\Database\Eloquent\Builder $query) - defined in Illuminate\Database\Eloquent\Model. Set the keys for a save update query.
  • protected void setRelationValue($relationName, $value) - defined in October\Rain\Database\Model. Sets a relation value directly from its attribute.
  • protected void updateTimestamps() - defined in Illuminate\Database\Eloquent\Model. Update the creation and update timestamps.
  • protected void validateRelationArgs($relationName, $optional, $required=array()) - defined in October\Rain\Database\Model. Validate relation supplied arguments.