A
A
Anatoly2019-09-25 10:19:51
Laravel
Anatoly, 2019-09-25 10:19:51

How to change cache driver on the fly?

Greetings
, can you tell me how to auto-switch (or even disable) the cache driver in Laravel?
For example: by default, the cache driver is redis, but suddenly it happens that redis has fallen off, how can I automatically switch it to file or turn it off completely?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
JhaoDa, 2019-09-25
@les-anatoliy

config(['foo.bar' => 'xyz']), about that and in the documentation it is written.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question