alfa6661/laravel-mongodb-cache

A MongoDB cache driver for Laravel
3,685 2
Install
composer require alfa6661/laravel-mongodb-cache
Latest Version:v2.0.2
PHP:>=7.0.0
License:MIT
Last Updated:Jan 1, 2020
Links: GitHub  ·  Packagist
Maintainer: alfa6661

Laravel Mongodb Cache

A MongoDB cache driver for Laravel

Installation

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

Related Packages

laravel/pint

An opinionated code formatter for PHP.

173,969,630 3,139
tightenco/duster

Automatic configuration for Laravel apps to apply Tighten's standard linting & c...

2,829,766 600
directorytree/ldaprecord-laravel

LDAP Authentication & Management for Laravel.

2,404,340 574
hemp/presenter

Easy Model Presenters in Laravel

624,216 247
juzaweb/cms

Juzaweb CMS is a Content Management System (CMS) developed based on Laravel Fram...

571,255 189