@@ -69,10 +69,10 @@ following ways:
6969The following list describes other driver options that you can set in
7070the ``options`` array:
7171
72- - ``id_field``: Field name for storing the session ID (default: ``_id``)
73- - ``data_field``: Field name for storing the session data (default: ``data``)
74- - ``time_field``: Field name for storing the timestamp (default: ``time``)
75- - ``expiry_field``: Field name for storing the expiry- timestamp (default: ``expires_at``)
72+ - ``id_field``: Custom field name for storing the session ID (default: ``_id``)
73+ - ``data_field``: Custom field name for storing the session data (default: ``data``)
74+ - ``time_field``: Custom field name for storing the timestamp (default: ``time``)
75+ - ``expiry_field``: Custom field name for storing the expiry timestamp (default: ``expires_at``)
7676- ``ttl``: Time to live in seconds
7777
7878We recommend that you create an index on the ``expiry_field`` field for
@@ -86,12 +86,12 @@ the following code:
8686.. code-block:: php
8787
8888 Schema::create('sessions', function (Blueprint $collection) {
89- $collection->expire('expiry_field ', 0);
89+ $collection->expire('expires_at ', 0);
9090 });
9191
92- Setting the time value to ``0`` in the index
93- definition instructs MongoDB to expire documents at the clock time
94- specified in the ``expiry_field `` field.
92+ Setting the time value to ``0`` in the index definition instructs
93+ MongoDB to expire documents at the clock time specified in the
94+ ``expires_at `` field.
9595
9696To learn more about using the ``Schema`` builder to create indexes, see
9797the :ref:`laravel-schema-builder-special-idx` section of the Schema
0 commit comments