메소드 |
설명 |
|
__call ( string $method, array $parameters ) : mixed |
Handle dynamic method calls into the method. |
|
__callStatic ( string $method, array $parameters ) : mixed |
Handle dynamic static method calls into the method. |
|
__construct ( array $attributes = [] ) : void |
Create a new Eloquent model instance. |
|
__get ( string $key ) : mixed |
Dynamically retrieve attributes on the model. |
|
__isset ( string $key ) : void |
Determine if an attribute exists on the model. |
|
__set ( string $key, mixed $value ) : void |
Dynamically set attributes on the model. |
|
__toString ( ) : string |
Convert the model to its string representation. |
|
__unset ( string $key ) : void |
Unset an attribute on the model. |
|
all ( array $columns = [] ) : Collection |
Get all of the models from the database. |
|
attributesToArray ( ) : array |
Convert the model's attributes to an array. |
|
belongsTo ( string $related, string $foreignKey = null ) : BelongsTo |
Define an inverse one-to-one or many relationship. |
|
belongsToMany ( string $related, string $foreignKey = null, string $otherKey = null ) : BelongsToMany |
Define a many-to-many relationship. |
|
collection ( string $collection ) : void |
Set the collection associated with the model. |
|
create ( array $attributes ) : Model |
Save a new model and return the instance. |
|
created ( Closur\Closure | string $callback ) : void |
Register a created model event with the dispatcher. |
|
creating ( Closur\Closure | string $callback ) : void |
Register a creating model event with the dispatcher. |
|
delete ( ) : boolean | null |
Delete the model from the database. |
|
deleted ( Closur\Closure | string $callback ) : void |
Register a deleted model event with the dispatcher. |
|
deleting ( Closur\Closure | string $callback ) : void |
Register a deleting model event with the dispatcher. |
|
destroy ( array | integer $ids ) : void |
Destroy the models for the given IDs. |
|
fill ( array $attributes ) : Model |
Fill the model with an array of attributes. |
|
fillable ( array $fillable ) : Model |
Set the fillable attributes for the model. |
|
find ( mixed $id, array $columns = [] ) : Model | Collection |
Find a model by its primary key. |
|
findOrFail ( mixed $id, array $columns = [] ) : Model | Collection |
Find a model by its primary key or throw an exception. |
|
flushEventListeners ( ) : void |
Remove all of the event listeners for the model. |
|
forceDelete ( ) : void |
Force a hard delete on a soft deleted model. |
|
freshTimestamp ( ) : MongoDate |
Get a fresh MongoDate for the model. |
|
getAttribute ( string $key ) : mixed |
Get an attribute from the model. |
|
getAttributes ( ) : array |
Get all of the current attributes on the model. |
|
getCollection ( ) : string |
Get the collection associated with the model. |
|
getConnection ( ) : Connection |
Get the database connection for the model. |
|
getConnectionName ( ) : string |
Get the current connection name for the model. |
|
getConnectionResolver ( ) : LMongo\ConnectionResolverInterface |
Get the connection resolver instance. |
|
getCreatedAtColumn ( ) : string |
Get the name of the "created at" column. |
|
getDates ( ) : array |
Get the attributes that should be converted to dates. |
|
getDeletedAtColumn ( ) : string |
Get the name of the "deleted at" column. |
|
getDirty ( ) : array |
Get the attributes that have been changed since last sync. |
|
getEventDispatcher ( ) : Illuminate\Events\Dispatcher |
Get the event dispatcher instance. |
|
getFillable ( ) : array |
Get the fillable attributes for the model. |
|
getForeignKey ( ) : string |
Get the default foreign key name for the model. |
|
getHidden ( ) : array |
Get the hidden attributes for the model. |
|
getIncrementing ( ) : boolean |
Get the value indicating whether the IDs are incrementing. |
|
getKey ( ) : mixed |
Get the value of the model's primary key. |
|
getKeyName ( ) : string |
Get the primary key for the model. |
|
getMutatedAttributes ( ) : array |
Get the mutated attributes for a given instance. |
|
getObservableEvents ( ) : array |
Get the observable event names. |
|
getOriginal ( string $key = null, mixed $default = null ) : array |
Get the model's original attribute values. |
|
getPerPage ( ) : integer |
Get the number of models to return per page. |
|
getQualifiedDeletedAtColumn ( ) : string |
Get the fully qualified "deleted at" column. |
|
getRelation ( string $relation ) : mixed |
Get a specified relationship. |
|
getRelations ( ) : array |
Get all the loaded relations for the instance. |
|
getTouchedRelations ( ) : array |
Get the relationships that are touched on save. |
|
getUpdatedAtColumn ( ) : string |
Get the name of the "updated at" column. |
|
guard ( array $guarded ) : Model |
Set the guarded attributes for the model. |
|
hasGetMutator ( string $key ) : boolean |
Determine if a get mutator exists for an attribute. |
|
hasMany ( string $related, string $foreignKey = null ) : HasMany |
Define a one-to-many relationship. |
|
hasOne ( string $related, string $foreignKey = null ) : LMongo\Eloquent\Relation\HasOne |
Define a one-to-one relationship. |
|
hasSetMutator ( string $key ) : boolean |
Determine if a set mutator exists for an attribute. |
|
isDirty ( string $attribute ) : boolean |
Determine if a given attribute is dirty. |
|
isFillable ( string $key ) : boolean |
Determine if the given attribute may be mass assigned. |
|
isGuarded ( string $key ) : boolean |
Determine if the given key is guarded. |
|
isSoftDeleting ( ) : boolean |
Determine if the model instance uses soft deletes. |
|
load ( array | string $relations ) : void |
Eager load relations on the model. |
|
morphMany ( string $related, string $name, string $type = null, string $id = null ) : LMongo\Eloquent\Relation\MorphMany |
Define a polymorphic one-to-many relationship. |
|
morphOne ( string $related, string $name, string $type = null, string $id = null ) : LMongo\Eloquent\Relation\MorphOne |
Define a polymorphic one-to-one relationship. |
|
morphTo ( string $name = null, string $type = null, string $id = null ) : BelongsTo |
Define an polymorphic, inverse one-to-one or many relationship. |
|
newCollection ( array $models = [] ) : Collection |
Create a new Collection instance. |
|
newFromBuilder ( array $attributes = [] ) : Model |
Create a new model instance that is existing. |
|
newInstance ( array $attributes = [], boolean $exists = false ) : Model |
Create a new instance of the given model. |
|
newQuery ( boolean $excludeDeleted = true ) : Builder |
Get a new query builder for the model's table. |
|
newQueryWithDeleted ( ) : Builder |
Get a new query builder that includes soft deletes. |
|
observe ( object $class ) : void |
Register an observer with the Model. |
|
offsetExists ( mixed $offset ) : boolean |
Determine if the given attribute exists. |
|
offsetGet ( mixed $offset ) : mixed |
Get the value for a given offset. |
|
offsetSet ( mixed $offset, mixed $value ) : void |
Set the value for a given offset. |
|
offsetUnset ( mixed $offset ) : void |
Unset the value for a given offset. |
|
on ( string $connection = null ) : Builder |
Begin querying the model on a given connection. |
|
onlyTrashed ( ) : Builder |
Get a new query builder that only includes soft deletes. |
|
push ( ) : boolean |
Save the model and all of its relationships. |
|
query ( ) : Builder |
Begin querying the model. |
|
reguard ( ) : void |
Enable the mass assignment restrictions. |
|
relationsToArray ( ) : array |
Get the model's relationships in array form. |
|
replicate ( ) : Model |
Clone the model into a new, non-existing instance. |
|
resolveConnection ( string $connection = null ) : Connection |
Resolve a connection instance. |
|
restore ( ) : boolean | null |
Restore a soft-deleted model instance. |
|
save ( ) : boolean |
Save the model to the database. |
|
saved ( Closur\Closure | string $callback ) : void |
Register a saved model event with the dispatcher. |
|
saving ( Closur\Closure | string $callback ) : void |
Register a saving model event with the dispatcher. |
|
setAttribute ( string $key, mixed $value ) : void |
Set a given attribute on the model. |
|
setConnection ( string $name ) : void |
Set the connection associated with the model. |
|
setConnectionResolver ( LMongo\ConnectionResolverInterface $resolver ) : void |
Set the connection resolver instance. |
|
setCreatedAt ( mixed $value ) : void |
Set the value of the "created at" attribute. |
|
setEventDispatcher ( Illuminate\Events\Dispatcher $dispatcher ) : void |
Set the event dispatcher instance. |
|
setHidden ( array $hidden ) : void |
Set the hidden attributes for the model. |
|
setIncrementing ( boolean $value ) : void |
Set whether IDs are incrementing. |
|
setPerPage ( integer $perPage ) : void |
Set the number of models ot return per page. |
|
setRawAttributes ( array $attributes, boolean $sync = false ) : void |
Set the array of model attributes. No checking is done. |
|
setRelation ( string $relation, mixed $value ) : Model |
Set the specific relationship in the model. |
|
setRelations ( array $relations ) : Model |
Set the entire relations array on the model. |
|
setSoftDeleting ( boolean $enabled ) : void |
Set the soft deleting property on the model. |
|
setTouchedRelations ( array $touches ) : void |
Set the relationships that are touched on save. |
|
setUnguardState ( boolean $state ) : void |
Set "unguard" to a given state. |
|
setUpdatedAt ( mixed $value ) : void |
Set the value of the "updated at" attribute. |
|
setVisible ( array $visible ) : void |
Set the visible attributes for the model. |
|
syncOriginal ( ) : Model |
Sync the original attributes with the current. |
|
toArray ( ) : array |
Convert the model instance to an array. |
|
toJson ( integer $options ) : string |
Convert the model instance to JSON. |
|
totallyGuarded ( ) : boolean |
Determine if the model is totally guarded. |
|
touch ( ) : boolean |
Update the model's update timestamp. |
|
touchOwners ( ) : void |
Touch the owning relations of the model. |
|
touches ( string $relation ) : boolean |
Determine if the model touches a given relation. |
|
trashed ( ) : boolean |
Determine if the model instance has been soft-deleted. |
|
unguard ( ) : void |
Disable all mass assignable restrictions. |
|
unsetEventDispatcher ( ) : void |
Unset the event dispatcher for models. |
|
update ( array $attributes = [] ) : mixed |
Update the model in the database. |
|
updated ( Closur\Closure | string $callback ) : void |
Register an updated model event with the dispatcher. |
|
updating ( Closur\Closure | string $callback ) : void |
Register an updating model event with the dispatcher. |
|
usesTimestamps ( ) : boolean |
Determine if the model uses timestamps. |
|
with ( array | string $relations ) : Builder |
Being querying a model with eager loading. |
|
withTrashed ( ) : Builder |
Get a new query builder that includes soft deletes. |
|