Download the PHP package rolandstarke/laravel-mild-database-session-driver without Composer
On this page you can find all versions of the php package rolandstarke/laravel-mild-database-session-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rolandstarke/laravel-mild-database-session-driver
More information about rolandstarke/laravel-mild-database-session-driver
Files in rolandstarke/laravel-mild-database-session-driver
Package laravel-mild-database-session-driver
Short Description Laravel Mild Database Session Handler
License MIT
Informations about the package laravel-mild-database-session-driver
Laravel Mild Database Session Driver
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.
Make sure the session table exists.
In your .env file change the SESSION_DRIVER to mild_database.
License
MIT