A MongoDB session driver for Laravel 4, 5, 6, 7 and 8
jenssegers/mongodb-session is a Laravel package for a mongodb session driver for laravel 4, 5, 6, 7 and 8.
It currently has 75 GitHub stars and 315.440 downloads on Packagist (latest version v1.4.0).
Install it with composer require jenssegers/mongodb-session.
Discover more Laravel packages by jenssegers
or browse all Laravel packages to compare alternatives.
Last updated
A MongoDB session driver for Laravel 4, 5, 6, 7 or 8 which is inspired by LMongo. For more information about Sessions, check http://laravel.com/docs/eloquent.
Make sure you have jenssegers\mongodb installed before you continue.
Laravel | Package :---------|:---------- 4.x.x | 1.0.x 5.x.x | 1.2.x 6.x.x | 1.3.x 7.x.x | 1.4.x 8.x.x | 1.4.x
Install using composer:
composer require jenssegers/mongodb-session
Add the session service provider in app/config/app.php: (Below Laravel 7 Version)
'Jenssegers\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',