Looking to hire Laravel developers? Try LaraJobs

laravel-mild-database-session-driver maintained by rolandstarke

Description
Laravel Mild Database Session Handler
Author
Roland Starke
Last update
2021/10/28 09:32 (dev-main)
License
Links
Downloads
5

Comments
comments powered by Disqus

Laravel Mild Database Session Driver

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