View on GitHub


A MongoDB session driver for Laravel 4, inspired by LMongo. For more information about Sessions, check


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

Install using composer:

composer require jenssegers/mongodb-session

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


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',