simexis / mongodb-session
A MongoDB session driver for Laravel 5
Installs: 3 706
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=5.6.0
- illuminate/session: ~5.3
- jenssegers/mongodb: *
This package is auto-updated.
Last update: 2024-11-15 18:54:22 UTC
README
A MongoDB session driver for Laravel 5, 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.
Install using composer:
composer require simexis/mongodb-session
Add the session service provider in app/config/app.php
:
'Simexis\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',