Looking to hire Laravel developers? Try LaraJobs

laravelmongodbcache maintained by snowsoft

Description
A MongoDB cache driver for Laravel
Author
Last update
2020/12/26 23:19 (dev-master)
License
Downloads
3

Comments
comments powered by Disqus

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 snowsoft/laravel-mongodb-cache

Add the session service provider in app/config/app.php:

'Nlk\Mongodb\Cache\MongoCacheServiceProvider::class',

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