rolandstarke / laravel-mild-database-session-driver
Laravel Mild Database Session Handler
Package info
github.com/rolandstarke/laravel-mild-database-session-driver
pkg:composer/rolandstarke/laravel-mild-database-session-driver
Requires
None
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Session driver with less writes to the database. Does the same as default database session driver with the benefit that the session is only written to the database if it changed. Every 2 minutes the last activity is updated (instead of every request). The previous URL url()->previous() is no longer stored in the session and is only derived from the HTTP Referer header if present.
Installation
Install with composer.
composer require rolandstarke/laravel-mild-database-session-driver
Make sure the session table exists.
php artisan session:table php artisan migrate
In your .env file change the SESSION_DRIVER to mild_database.
SESSION_DRIVER=mild_database