Свойство | Тип | Описание | |
---|---|---|---|
$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. |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
getDsn ( array $config ) : string | Create a DSN string from a configuration. |
public collection ( string $collection ) : |
||
$collection | string | |
Результат |
public getCacheManager ( ) : Illuminate\Cache\CacheManager | ||
Результат | Illuminate\Cache\CacheManager |
public getEventDispatcher ( ) : Illuminate\Events\Dispatcher | ||
Результат | Illuminate\Events\Dispatcher |
public getMongoClient ( ) : MongoClient | ||
Результат | MongoClient |
public getMongoDB ( ) : MongoDB | ||
Результат | MongoDB |
public getPaginator ( ) : Illuminate\Pagination\Environment | ||
Результат | Illuminate\Pagination\Environment |
public setCacheManager ( Illuminate\Cache\CacheManager | Closure $cache ) : void | ||
$cache | Illuminate\Cache\CacheManager | Closure | |
Результат | void |
public setEventDispatcher ( Illuminate\Events\Dispatcher $events ) : void | ||
$events | Illuminate\Events\Dispatcher | |
Результат | void |
public setPaginator ( Illuminate\Pagination\Environment | Closure $paginator ) : void | ||
$paginator | Illuminate\Pagination\Environment | Closure | |
Результат | void |
protected CacheManger,Illuminate\Cache $cache | ||
Результат | Illuminate\Cache\CacheManger |
protected array $config | ||
Результат | array |
protected resource $connection | ||
Результат | resource |
protected Illuminate\Events\Dispatcher $events | ||
Результат | Illuminate\Events\Dispatcher |