jenssegers/mongodb-session

A MongoDB session driver for Laravel 4
315,600 75
Install
composer require jenssegers/mongodb-session
Latest Version:v1.4.0
PHP:>=7.2
License:MIT
Last Updated:Oct 21, 2022
Links: GitHub  ·  Packagist
Maintainer: jenssegers

Laravel MongoDB Session

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.

Installation

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

Laravel Version Compatibility

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

Related Packages

ailidong/laravel-mongodb-session

A MongoDB session driver for Laravel 5.3

20 0
vansteen/laravel-mongodb-cache

A MongoDB cache driver for Laravel 4 using the Laravel MongoDB package jensseger...

2,825 4
flatline/mongol

MongoDB library and Auth driver for Laravel 4

38 1
julien-c/mongovel

A Laravel-ish wrapper to the PHP Mongo driver

7,684 32
moloquent/moloquent

A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)

115,937 120