Свойство | Type | Description | |
---|---|---|---|
$cache | Illuminate\Cache\CacheManger | The cache manager instance. | |
$config | array | The database connection configuration options. | |
$connection | resource | The MongoClient connection handler. | |
$db | resource | The MongoDB database handler. | |
$events | Illuminate\Events\Dispatcher | The event dispatcher instance. | |
$paginator | Illuminate\Pagination\Paginator | The paginator environment instance. |
Méthode | Description | |
---|---|---|
__get ( string $name ) : MongoCollection | Dynamically pass collection name to MongoCollection and return it. | |
collection ( string $collection ) : |
Return new Query Builder instance | |
connect ( array $config ) : LMongo\Connection | Establish a database connection. | |
getCacheManager ( ) : Illuminate\Cache\CacheManager | Get the cache manager instance. | |
getConfig ( string $option ) : mixed | Get an option from the configuration options. | |
getEventDispatcher ( ) : Illuminate\Events\Dispatcher | Get the event dispatcher used by the connection. | |
getMongoClient ( ) : MongoClient | return MongoClient object | |
getMongoDB ( ) : MongoDB | return MongoDB object | |
getName ( ) : string | null | Get the database connection name. | |
getPaginator ( ) : Illuminate\Pagination\Environment | Get the paginator environment instance. | |
setCacheManager ( Illuminate\Cache\CacheManager | Closure $cache ) : void | Set the cache manager instance on the connection. | |
setEventDispatcher ( Illuminate\Events\Dispatcher $events ) : void | Set the event dispatcher instance on the connection. | |
setPaginator ( Illuminate\Pagination\Environment | Closure $paginator ) : void | Set the pagination environment instance. |
Méthode | Description | |
---|---|---|
getDsn ( array $config ) : string | Create a DSN string from a configuration. |
public collection ( string $collection ) : |
||
$collection | string | |
Résultat |
public getCacheManager ( ) : Illuminate\Cache\CacheManager | ||
Résultat | Illuminate\Cache\CacheManager |
public getEventDispatcher ( ) : Illuminate\Events\Dispatcher | ||
Résultat | Illuminate\Events\Dispatcher |
public getMongoClient ( ) : MongoClient | ||
Résultat | MongoClient |
public getPaginator ( ) : Illuminate\Pagination\Environment | ||
Résultat | Illuminate\Pagination\Environment |
public setCacheManager ( Illuminate\Cache\CacheManager | Closure $cache ) : void | ||
$cache | Illuminate\Cache\CacheManager | Closure | |
Résultat | void |
public setEventDispatcher ( Illuminate\Events\Dispatcher $events ) : void | ||
$events | Illuminate\Events\Dispatcher | |
Résultat | void |
public setPaginator ( Illuminate\Pagination\Environment | Closure $paginator ) : void | ||
$paginator | Illuminate\Pagination\Environment | Closure | |
Résultat | void |
protected CacheManger,Illuminate\Cache $cache | ||
Résultat | Illuminate\Cache\CacheManger |
protected array $config | ||
Résultat | array |
protected resource $connection | ||
Résultat | resource |
protected Illuminate\Events\Dispatcher $events | ||
Résultat | Illuminate\Events\Dispatcher |