ailidong/laravel-mongodb-session

A MongoDB session driver for Laravel 5.3

dev-master 2017-01-19 02:26 UTC

This package is not auto-updated.

Last update: 2024-04-22 09:58:14 UTC


README

A MongoDB session driver for Laravel 5.

Installation

Make sure you have jenssegers\mongodb installed before you continue.

Install using composer:

composer require ailidong/laravel-mongodb-session

Add the session service provider in app/config/app.php:

'Purpleobject\Mongodb\Session\SessionServiceProvider',

Change the session driver in app/config/session.php to mongodb:

'driver' => 'mongodb',

Optional: change the connection to a connection using the mongodb driver from app/config/database.php:

'connection' => 'mongodb',