mercredi 8 février 2017

Laravel 5 cache on file not working

I have machine with php 5.6 laravel 5 centos 7.3 apache httpd 2.4.

I try use laravel cache config/cache.php:

...
'default' => env('CACHE_DRIVER', 'file'),
...
'file' => [
        'driver' => 'file',
        'path'   => storage_path('framework/cache'),
    ],
...

but get error:

file_put_contents(/var/www/html/project/api/storage/framework/cache/7d/ab/7dabe30eba211b803662f3a2c48133024bb4aa18): failed to open stream: No such file or directory

when create file manually and then get permissions problems.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire