omt / mongodb-session
A MongoDB session driver for Laravel 4
Installs: 2
Dependents: 0
Suggesters: 1
Security: 0
Stars: 0
Watchers: 0
Forks: 27
pkg:composer/omt/mongodb-session
Requires
- php: >=5.3.0
- illuminate/session: ~4.0|~5.0
- jenssegers/mongodb: *
README
A MongoDB session driver for Laravel 4, inspired by LMongo. For more information about Sessions, check http://laravel.com/docs/eloquent.
Installation
Make sure you have omt\mongodb installed before you continue.
Install using composer:
composer require omt/mongodb-session
Add the session service provider in app/config/app.php:
'OMT\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',