mongoloquent
    Preparing search index...

    Class Model<T>

    Type Parameters

    • T = any

    Hierarchy (View Summary)

    Indexable

    • [key: string]: any
    Index

    Constructors

    Properties

    Methods

    addColumn addExclude addGroup addLookup addNested addOrder addStage addWhere addWith addWithOnly addWithout all avg belongsTo belongsToMany count create createMany createProxy delete destroy exclude fill find findOrFail first firstOrCreate firstOrFail firstOrNew forceDelete forceDestroy get getAlias getAttributes getChanges getCollection getColumns getConnection getCreatedAt getDatabaseName getDeletedAt getExcludes getGroups getId getIsDeleted getLimit getLookups getMongoDBCollection getNested getOffset getOnlyTrashed getOptions getOrders getOriginal getStages getTimezone getUpdatedAt getUseSoftDelete getUseTimestamps getWheres getWith getWithOnly getWithout getWithTrashed groupBy hasChanges hasMany hasManyThrough hasOne insert insertMany isClean isDirty limit max min morphedByMany morphMany morphTo morphToMany offset onlyTrashed orderBy orWhere orWhereBetween orWhereIn orWhereNot orWhereNotIn orWhereNotNull orWhereNull paginate pluck refresh restore save select setAlias setAttributes setChanges setCollection setColumns setConnection setCreatedAt setDatabaseName setDeletedAt setExcludes setGroups setId setIsDeleted setLimit setLookups setNested setOffset setOnlyTrashed setOptions setOrders setOriginal setStages setTimezone setUpdatedAt setUseSoftDelete setUseTimestamps setWheres setWith setWithOnly setWithout setWithTrashed skip sum trackChange update updateMany updateOrCreate updateOrInsert wasChanged where whereBetween whereIn whereNot whereNotIn whereNotNull whereNull with withTrashed all avg count create createMany destroy exclude find findOrFail first firstOrCreate firstOrNew forceDestroy get groupBy insert insertMany limit max min offset onlyTrashed orderBy orWhere orWhereBetween orWhereIn orWhereNot orWhereNotIn orWhereNotNull orWhereNull paginate pluck query select skip sum take updateOrCreate updateOrInsert where whereBetween whereIn whereNot whereNotIn whereNotNull whereNull with withOnly without withTrashed

    Constructors

    Properties

    $attributes: Partial<T> = {}
    $collection: string = ""
    $connection: string = ""
    $databaseName: string = ""
    $nested: string[] = []
    $timezone: string = ""
    $useSoftDelete: boolean = false
    $useTimestamps: boolean = true
    $with: string[] = []
    $connection: string
    $databaseName: string
    $schema: any
    $timezone: string

    Methods