| Package Data | |
|---|---|
| Maintainer Username: | alfa6661 |
| Maintainer Contact: | alfa2159@gmail.com (Alfa Adhitya) |
| Package Create Date: | 2017-09-06 |
| Package Last Update: | 2020-01-01 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-02 15:14:06 |
| Package Statistics | |
|---|---|
| Total Downloads: | 3,685 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 2 |
| Total Watchers: | 1 |
| Total Forks: | 2 |
| Total Open Issues: | 0 |
A MongoDB cache driver for Laravel
Make sure you have jenssegers\mongodb installed before you continue.
Install using composer:
composer require alfa6661/laravel-mongodb-cache
Add the session service provider in app/config/app.php:
'Alfa6661\Mongodb\Cache\MongoCacheServiceProvider',
Add mongodb cache store in app/config/cache.php
'stores' => [
/...
'mongodb' => [
'driver' => 'mongodb',
'table' => 'cache',
'connection' => null,
],
],
Update your .env file and change the CACHE_DRIVER to mongodb
CACHE_DRIVER=mongodb