rolandstarke/laravel-mild-database-session-driver

Laravel Mild Database Session Handler

v1.0.0 2021-10-27 18:57 UTC

This package is auto-updated.

Last update: 2024-11-28 14:01:24 UTC


README

Latest Stable Version LICENSE

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).

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

License

MIT