ailidong / laravel-mongodb-session
A MongoDB session driver for Laravel 5.3
dev-master
2017-01-19 02:26 UTC
Requires
- php: >=5.5.0
- illuminate/session: ~5.2
- jenssegers/mongodb: *
This package is not auto-updated.
Last update: 2024-12-16 13:00:07 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',