T
T
Taras Parashchuk2020-12-07 21:57:46
Laravel
Taras Parashchuk, 2020-12-07 21:57:46

How to set up LARAVEL cache correctly?

Please help me set up LARAVEL cache.
I have these settings. The Cache table has been created. Only value is confusing 'connection' => 'null',
'default' => env('CACHE_DRIVER', 'database'),

'database' => [
            'driver' => 'database',
            'table' => 'cache',
            'connection' => 'null',
        ],

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2020-12-07
@Nc_Soft

'database' => [
            'driver' => 'database',
            'table' => 'cache',
            'connection' => null,
        ]

This is how the connection will be by default.
Can be specified explicitly
'database' => [
            'driver' => 'database',
            'table' => 'cache',
            'connection' => 'mysql',
        ]

'connection' => 'null' invalid entry

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question